[issue3263] Odd code fragment in ABC definitions

Raymond Hettinger report at bugs.python.org
Thu Jul 3 01:24:05 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

I don't think we should build in explicit support for bad designs that 
violate the Liskov substitution principle. Are there any valid use 
cases for wanting non-hashable subclasses of hashable classes?

If for some reason, this feature survives, it would be better to use 
NotImplemented instead of None.

----------
versions: +Python 2.6 -Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3263>
_______________________________________


More information about the Python-bugs-list mailing list