[issue2217] Problem with if clause in generator expression on class level
Georg Brandl
report at bugs.python.org
Sun Mar 2 18:56:46 CET 2008
Georg Brandl added the comment:
This may seem odd, but is correct as per spec.
The "if c in a" part is executed in a scope of its own, and class scopes
don't contribute to nested scoping.
----------
nosy: +georg.brandl
resolution: -> wont fix
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2217>
__________________________________
More information about the Python-bugs-list
mailing list