[Python-Dev] redefining is
ark-mlist at att.net
Fri Mar 19 17:13:59 EST 2004
> 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?
More information about the Python-Dev