It doesn't seem to copy the value, just make another reference:
>>> a = 65535
>>> b = a
>>> b is a
True
One thing I know that Python does is optimize the value away for the few smallest values of the primitives. But that's on optimizations.
It doesn't seem to copy the value, just make another reference:
>>> a = 65535
>>> b = a
>>> b is a
True
One thing I know that Python does is optimize the value away for the few smallest values of the primitives. But that's on optimizations.