Message377663
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. |
|
Date |
User |
Action |
Args |
2020-09-29 12:02:49 | josh.r | set | recipients:
+ josh.r, Robert Haschke |
2020-09-29 12:02:49 | josh.r | set | messageid: <1601380969.62.0.0892168478133.issue41878@roundup.psfhosted.org> |
2020-09-29 12:02:49 | josh.r | link | issue41878 messages |
2020-09-29 12:02:49 | josh.r | create | |
|