Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icebraining
on May 9, 2014
|
parent
|
context
|
favorite
| on:
Why Python is Slow: Looking Under the Hood
Yeap:
>>> a = 110 >>> b = 110 >>> id(a) == id(b) True
on May 9, 2014
[3 more]
[deleted]
icebraining
on May 9, 2014
|
parent
[–]
Uh, I didn't use assignment between variables; my code is the same as your second example (both variables independently assigned to 110).
taejo
on May 9, 2014
|
root
|
parent
[–]
Indeed; I was confused by the dekhn's aside.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: