summaryrefslogtreecommitdiffstatshomepage
path: root/examples/hwapi/button_led.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2018-10-25 23:48:03 +0300
committerDamien George <damien.p.george@gmail.com>2018-11-01 13:33:16 +1100
commit5c18730f28c4f70496f52a59293ee4a575ab3fa5 (patch)
treea2f78ecef32a28b419e400b2d8c28f4d9da93a6b /examples/hwapi/button_led.py
parent30ed2b3cabd4fe3cc8e0b865846a05d957937a50 (diff)
downloadmicropython-5c18730f28c4f70496f52a59293ee4a575ab3fa5.tar.gz
micropython-5c18730f28c4f70496f52a59293ee4a575ab3fa5.zip
py/runtime: Fix qstr assumptions when handling "import *".
There was an assumption that all names in a module dict are qstr's. However, they can be dynamically generated (by assigning to globals()), and in case of a long name, it won't be a qstr. Handle this situation properly, including taking care of not creating superfluous qstr's for names starting with "_" (which aren't imported by "import *").
Diffstat (limited to 'examples/hwapi/button_led.py')
0 files changed, 0 insertions, 0 deletions