[New-bugs-announce] [issue2217] Problem with if clause in generator expression on class level
Christoph Zwerschke
report at bugs.python.org
Sun Mar 2 18:43:37 CET 2008
New submission from Christoph Zwerschke:
The following code throws a NameError which seems to be a bug existing
since Python 2.4 up to the current 2.5.2.
class A:
a = 'test'
[c for c in a]
(c for c in a)
tuple(c for c in a)
[c for c in a if c in a]
(c for c in a if c in a)
tuple(c for c in a if c in a) # --> NameError
----------
components: Interpreter Core, Library (Lib), Macintosh, Regular Expressions, Tests, Tkinter, Unicode, Windows, XML
messages: 63182
nosy: cito
severity: normal
status: open
title: Problem with if clause in generator expression on class level
type: behavior
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2217>
__________________________________
More information about the New-bugs-announce
mailing list