[New-bugs-announce] [issue13557] exec of list comprehension fails on NameError
Stephan R.A. Deibel
report at bugs.python.org
Thu Dec 8 21:25:54 CET 2011
New submission from Stephan R.A. Deibel <sdeibel at wingware.com>:
Calling exec() on code that includes a list comprehension that references a defined local variable x fails incorrectly on "NameError: global name 'x' not defined".
----------
files: execlistcomp.py
messages: 149050
nosy: sdeibel
priority: normal
severity: normal
status: open
title: exec of list comprehension fails on NameError
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file23883/execlistcomp.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13557>
_______________________________________
More information about the New-bugs-announce
mailing list