[issue35273] 'eval' in generator expression behave different in dict from list
Josh Rosenberg
report at bugs.python.org
Tue Nov 20 19:53:53 EST 2018
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
The "bug" is the expected behavior for 2.7, as previously noted, and does not exist on Python 3 (where list comprehensions follow the same rules as generator expressions for scoping), where NameErrors are raised consistently.
----------
nosy: +josh.r
resolution: -> not a bug
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