Mutable numbers

fraca7 fraca7 at free.fr
Tue Feb 21 10:51:40 EST 2006


fraca7 a écrit :
> Steve Holden a écrit :
> 
>> [Thinks: or maybe fraca7 just meant that integers will be garbage 
>> collected when there are no more references to them].
> 
> Actually I meant that the memory is reused, but the same integer won't 
> always have the same address.

And of course this means they're garbaged collected, but free() won't be 
called. I must read before answering :)



More information about the Python-list mailing list