[Python-Dev] (not) redefining is (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Sun Mar 21 17:07:13 EST 2004
- Previous message: [Python-Dev] (not) redefining is
- Next message: [Python-Dev] (old) module names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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 +--------------------------------------+
- Previous message: [Python-Dev] (not) redefining is
- Next message: [Python-Dev] (old) module names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]