Strange behaviour of 'is'

Erik Max Francis max at alcyone.com
Thu Sep 21 18:56:10 EDT 2006


Ben C wrote:

> I'm as baffled as you, even more so its implication:

There is no implication whatsoever.  Whether immutable objects are 
recycled by the compiler or not is totally implementation dependent, and 
an irrelevant implementation detail.  Since they can't be mutated, 
whether their identity is shared with other objects in other contexts is 
never significant.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
   Little things / Cut like knives / Hurt and sting
    -- Anggun



More information about the Python-list mailing list