PEP 285: Adding a bool type
Aahz
aahz at pythoncraft.com
Tue Apr 2 09:56:45 EST 2002
In article <mailman.1017752105.30270.python-list at python.org>,
Rich Harkins <rich at worldsinfinite.com> wrote:
>
>Hmmm... this is slightly OT for the thread but I have made a bit of a habit
>of doing the following:
>
>if result is None: # As opposed to result == None
> stuff
>
>This is somewhat out of paranoia, and slightly out of interest in speed (my
>recollection is that previous Python versions could end up calling __coerce__
>on comparisons with None and in many of these cases I didn't really want
>that). Is there any compelling reason not to do this? Isn't None to be a
>singleton in perpetuity?
Don't worry; you're doing the right thing.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Why is this newsgroup different from all other newsgroups?
More information about the Python-list
mailing list