Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bobbylarrybobby
6 months ago
|
parent
|
context
|
favorite
| on:
I'm switching to Python and actually liking it
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.
dec0dedab0de
6 months ago
|
next
[–]
Oh wow, maybe that's why I expect it to work that way! I can't believe it's been long enough since I used 2 that I'm forgetting it's quirks.
dapperdrake
6 months ago
|
prev
[–]
That almost sounds like having the "variables" eax, ebx, ecx, and edx.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: