Message90952
PEP 289 states that "Python 2.4 and beyond should issue a deprecation
warning if a list comprehension's loop variable has the same name as a
variable used in the immediately surrounding scope". But no warning is
shown when running
for x in [ 0 ]: print [ x for x in [ 1 ] ]
in Python 2.5.2 (at least). |
|
Date |
User |
Action |
Args |
2009-07-26 17:25:03 | mrbax | set | recipients:
+ mrbax |
2009-07-26 17:25:03 | mrbax | set | messageid: <1248629103.59.0.528554407036.issue6580@psf.upfronthosting.co.za> |
2009-07-26 17:25:01 | mrbax | link | issue6580 messages |
2009-07-26 17:25:01 | mrbax | create | |
|