[Pythonmac-SIG] string ids

Ronald Oussoren ronaldoussoren at mac.com
Mon Dec 29 16:59:30 CET 2008


 
On Monday, December 29, 2008, at 04:01PM, "Feat" <jf at ai.univ-paris8.fr> wrote:
>I thought a string was stored as a unique object, so why isn't this evidenced by the code below ?

Because strings aren't stored as unique objects. That is, there is no guarantee whatsoever that 'string1 == string2' implies 'string1 is string2'. 

Ronald



More information about the Pythonmac-SIG mailing list