New submission from Stephan R.A. Deibel <sdei...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13557>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to