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 josh.r
Recipients Robert Haschke, josh.r
Date 2020-09-29.12:02:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601380969.62.0.0892168478133.issue41878@roundup.psfhosted.org>
In-reply-to
Content
Yes, list comprehensions having their own local scope was a change from Py2 to Py3. Python 2 did not do this for list comps initially, and it was left that way during the 2.x timeframe due to back compat constraints, but 2.x did it from the start for generator expressions, as well set and dict comps, and they were all made consistent for Py3.
History
Date User Action Args
2020-09-29 12:02:49josh.rsetrecipients: + josh.r, Robert Haschke
2020-09-29 12:02:49josh.rsetmessageid: <1601380969.62.0.0892168478133.issue41878@roundup.psfhosted.org>
2020-09-29 12:02:49josh.rlinkissue41878 messages
2020-09-29 12:02:49josh.rcreate