[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

R. David Murray report at bugs.python.org
Sat Sep 9 19:19:14 EDT 2017


R. David Murray added the comment:

This is indeed not a bug, it it a consequence of the scoping rules.

What surprises me is that it works without passing in an explicit scope in in 3.7.  I'm not sure what we changed that makes that true.

----------

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


More information about the Python-bugs-list mailing list