This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrbax
Recipients mrbax
Date 2009-07-26.17:25:01
SpamBayes Score 6.404054e-06
Marked as misclassified No
Message-id <1248629103.59.0.528554407036.issue6580@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2009-07-26 17:25:03mrbaxsetrecipients: + mrbax
2009-07-26 17:25:03mrbaxsetmessageid: <1248629103.59.0.528554407036.issue6580@psf.upfronthosting.co.za>
2009-07-26 17:25:01mrbaxlinkissue6580 messages
2009-07-26 17:25:01mrbaxcreate