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/043249.html below:

[Python-Dev] Re: redefining is

[Python-Dev] Re: redefining is [Python-Dev] Re: redefining isCasey Duncan casey at zope.com
Thu Mar 18 14:38:03 EST 2004
On Thu, 18 Mar 2004 10:51:02 -0800
Guido van Rossum <guido at python.org> wrote:

> > Indeed.  Of course, object() is mutable, so there is no proposal to
> > change the meaning of this program.  What I'm concerned about is
> > someone trying to do the same thing this way:
> > 
> > 	missing = 'missing'
> > 
> > 	if d.get('somekey', missing) is 'missing':
> > 		# it ain't there
> > 
> > This code contains a bug, but on an implementation that interns
> > strings that happen to look like identifiers, no test will detect
> > the bug.
> 
> I'm ready to pronounce.  The code is buggy.  There are good reasons to
> keep 'is' the way it always was.  The definition of 'is' ain't gonna
> change.  So be it.

So then: is is as is was ;^)

-Casey


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