[Python-Dev] (not) redefining is
Greg 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