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. I guess that in your example, the '121' is assigned the 'old' address of 12100, and the result of the operation is assigned the next chunk; the following seems to confirm that: >>> id(12100) 8628480 >>> id(102) 8628480 -- http://mail.python.org/mailman/listinfo/python-list