Permanent objects?
Aahz
aahz at pythoncraft.com
Tue Dec 24 16:28:14 EST 2002
In article <mailman.1040762492.3113.python-list at python.org>,
Dave Brueck <dave at pythonapocrypha.com> wrote:
>Tim Peters makes a boo-boo for once:
>>
>> For example, never use "is" to compare immutable objects, unless you
>> don't care what the result is <wink>. The optimizations can (and do)
>> change across Python releases.
>
>Does this also apply to None?
<snicker> Point to you. True and False work like None, too -- but
they're specifically singleton objects.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"I disrespectfully agree." --SJM
More information about the Python-list
mailing list