summaryrefslogtreecommitdiffstatshomepage
path: root/py/parsenum.c
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-01-21 13:22:41 +0100
committerDamien George <damien.p.george@gmail.com>2015-01-24 20:21:09 +0000
commit6b636738b29223ff90cc9ce600aef4e5580570ed (patch)
treee2248519601dc41faa592abd0783a13dc119dd22 /py/parsenum.c
parent23342c09ff9e7d5ead4905a4692e9646b4bbc2eb (diff)
downloadmicropython-6b636738b29223ff90cc9ce600aef4e5580570ed.tar.gz
micropython-6b636738b29223ff90cc9ce600aef4e5580570ed.zip
py: Fix segfault in namedtuple when name is a non-interned string
- namedtuple was wrongly using MP_OBJ_QSTR_VALUE instead of mp_obj_str_get_qstr, so when passed a non-interned string it would segfault; fix this by using mp_obj_str_get_qstr - store the namedtuple field names as qstrs so it is not needed to use mp_obj_str_get_qstr everytime the field name has to be accessed. This also slighty increases performance when fetching attributes
Diffstat (limited to 'py/parsenum.c')
0 files changed, 0 insertions, 0 deletions