working with pointers

Leif K-Brooks eurleif at ecritters.biz
Wed Jun 1 09:40:57 EDT 2005


Duncan Booth wrote:
> The constant integers are created in advance, not when you do the 
> assignment.

But that's just an optimization, not Python's defined behavior. It seems
more useful to me to think of all integers as being created at
assignment time, even if CPython doesn't actually do that.



More information about the Python-list mailing list