Re:Python becomes a platform. Thoughts on the release of clo...
by DanWaterworth on Friday March 16, 2012 @02:32AM
(#3712249)
No, I had to check that, but it doesn't appear to be true. `id` uses the ptr of the object in CPython, and:
So it's actually creating a new Integer object, which `a` then points to, or in other words:
This behavior makes sense, if you wrote:
You wouldn't expect b to be 30.
[ Parent
| on HN ]
There are no comments on this comment yet.