PyObject
represents a Python integer object.
PyTypeObject
represents the Python plain
integer type.
ival
.
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. :-)
io
.