[issue36300] eval of generator expressions cannot access local variables

Emmanuel Arias report at bugs.python.org
Fri Mar 15 08:44:49 EDT 2019


Emmanuel Arias <emmanuelarias30 at gmail.com> added the comment:

I don't know if this a bug for py3 or py2 because the the w variable
is not defined on the list comprehension context.

Maybe the locals on `eval` must be create w on locals context

----------
type:  -> behavior
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36300>
_______________________________________


More information about the Python-bugs-list mailing list