[Python-Dev] redefining is (original) (raw)
Andrew Koenig ark-mlist at att.net
Fri Mar 19 17:13:59 EST 2004
- Previous message: [Python-Dev] redefining is
- Next message: [Python-Dev] redefining is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sorry, if you're usign any immutable value there and expecting it to be a unique object, you're cruisin' for a bruisin', so to speak. The language spec explicitly allows but does not require the implementation to cache and reuse immutable values.
Ay, there's the rub.
Aren't you saying that using "is" to compare immutables is always broken, unless you know that the immutable values are singletons?
- Previous message: [Python-Dev] redefining is
- Next message: [Python-Dev] redefining is
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]