On maandag, dec 30, 2002, at 17:30 Europe/Amsterdam, Guido van Rossum wrote: > The default implementation of __hash__ must match the default > implementation of __cmp__ (and rich comparisons, __eq__ etc.). So the > default implementation cannot raise an exception, because objects are > defined to be immutable by default. (Maybe this was a mistake, but > it's not so easy to change without causing backwards > incompatibilities.) Is it an option to enforce that these methods are overridden together, then? I.e. if you override any of them you must override all of them, otherwise you get a warning? -- - Jack Jansen <Jack.Jansen@oratrix.com> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman -
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4