types.IntType
.
The current implementation keeps an array of integer objects for all
integers between -1
and 100
, when you create an int in
that range you actually just get back a reference to the existing
object. So it should be possible to change the value of 1
. I
suspect the behaviour of Python in this case is undefined. :-)
See About this document... for information on suggesting changes.