| Store | Cart

[Python-Dev] (not) redefining is

From: Greg Ewing <g...@cosc.canterbury.ac.nz>
Sun, 21 Mar 2004 17:07:36
"Jewett, Jim J" <jim....@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.  |
g...@cosc.canterbury.ac.nz	   +--------------------------------------+

Recent Messages in this Thread
Jewett, Jim J Mar 19, 2004 10:15 am
Andrew Koenig Mar 19, 2004 01:30 pm
Tim Peters Mar 20, 2004 12:40 am
Greg Ewing Mar 21, 2004 05:07 pm
Messages in this thread