[issue35273] 'eval' in generator expression behave different in dict from list
yesheng
report at bugs.python.org
Mon Nov 19 02:42:57 EST 2018
yesheng <13611358285 at 139.com> added the comment:
I tried again, and could not reproduce on 3.6.7, latest update:
For 3.6.7: Both yyy() and zzz() got NameError
For 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
yyy() got ['abc', 'abd']
zzz() got NameError
2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)]
yyy() got ['abc', 'abd']
zzz() got NameError
----------
versions: +Python 2.7 -Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35273>
_______________________________________
More information about the Python-bugs-list
mailing list