This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, shadyabhi
Date 2011-04-05.15:23:24
SpamBayes Score 0.006021732
Marked as misclassified No
Message-id <1302017004.93.0.836323354956.issue11773@psf.upfronthosting.co.za>
In-reply-to
Content
The fact that "is" works in this way here is just an implementation detail.  If you want to compare strings use ==, "is" is used to verify if two variables refer to the same object or not.

>>> x = 100
>>> x is 100
True
>>> x = 1000
>>> x is 1000
False
History
Date User Action Args
2011-04-05 15:23:24ezio.melottisetrecipients: + ezio.melotti, shadyabhi
2011-04-05 15:23:24ezio.melottisetmessageid: <1302017004.93.0.836323354956.issue11773@psf.upfronthosting.co.za>
2011-04-05 15:23:24ezio.melottilinkissue11773 messages
2011-04-05 15:23:24ezio.melotticreate