Posts by famaral42 • 126 points
2 posts
-
0
votes1
answer66
views -
1
votes1
answer61
viewsA: How does the declaration of a class in Python handle the external scope?
This is crazy! I found this thread speaking of which, the name is List Comprehensions Leak. The Guido himself explains here. Different behaviors in python 2 and 3 (based on Guido’s post): x = 42 a =…