|
|
|
|
|
by bobbylarrybobby
331 days ago
|
|
Python 2 actually did let comprehension variables leak out into the surrounding scope. They changed it for Python 3, presumably because it was too surprising to overwrite an existing variable with a comprehension variable. |
|