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

[Python-Dev] (not) redefining is

[Python-Dev] (not) redefining is [Python-Dev] (not) redefining isGreg Ewing greg at cosc.canterbury.ac.nz
Sun Mar 21 17:07:13 EST 2004
"Jewett, Jim J" <jim.jewett at eds.com>:

> I personally like (and have used) Barry's suggestion of a new named
> object().  Unfortunately, object() is longer to type, not as backwards
> compatible, and places too emphasis on what the sentinel *is* rather
> than what is *isn't*.

Perhaps there should be a built-in type called 'sentinel'
for people to create unique objects from?

The implementation could be very simple:

  sentinel = object

:-)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

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