Hashability of classes, old and new

François Pinard pinard at iro.umontreal.ca
Mon Feb 16 14:17:53 EST 2004


[Tim Peters]
> [François Pinard]
> > Hi, people.  I observe that there is a difference in hashability
> > between old-style and new-style instances, when they are comparable.
> > I wonder what [...] meaning I should make out of this.

> You're looking at bugs, and new-style behavior will change.  See:

>     "New style classes and __hash__"
>     http://www.python.org/sf/660098

Thanks for your reply.  It's somehow comforting to learn that it is a
bug.  For a moment, I thought I got it all wrong! :-)




More information about the Python-list mailing list