[Python-Dev] Re: redefining is (original) (raw)
Andrew Koenig ark-mlist at att.net
Fri Mar 19 15:22:25 EST 2004
- Previous message: [Python-Dev] Re: redefining is
- Next message: [Python-Dev] redefining is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is why you cannot mess with "is". We replaced all the "== None" with "is None" in our code to avoid tracebacks when the eq method fails on a None. yes there is a bug in the eq code, but I don't want the eq code run at all in almost all cases.
The proposal we're talking about would not change the meaning of "x is None". For that matter, it would not change the meaning of "x is y" for any singleton y.
- Previous message: [Python-Dev] Re: redefining is
- Next message: [Python-Dev] redefining is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]