[Python-Dev] bool does not want to be subclassed? (original) (raw)

Phillip J. Eby pje at telecommunity.com
Mon Feb 16 15:38:10 EST 2004


At 03:15 PM 2/16/04 -0500, François Pinard wrote:

So, instead of explaining how we should cleverly use _hash_' to_ _describe immutability, we might describe what hash' ought to be, and then merely notice that hashable objects could be useful to represent immutable objects (whether user objects or builtin objects).

Actually, it might be even better to start with equality. Hashing is only meaningful for objects that can be tested for equality. That is:



More information about the Python-Dev mailing list