A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-March/043300.html below:

[Python-Dev] redefining is

[Python-Dev] redefining is [Python-Dev] redefining isBarry Warsaw barry at python.org
Fri Mar 19 13:05:51 EST 2004
On Fri, 2004-03-19 at 12:59, Michael Chermside wrote:

>   Identity Objects can be (meaningfully) compared by:
> 
>     * Object Identity
>         To see if these are "the same object". Also useful
>         for low-level memory stuff according to Tim.
>         (just use '==', although 'is' would work too)

Using == for identity objects is the wrong thing.  We should discourage
tests like "if obj == None" in favor of "if obj is None".

-Barry



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4