[docs] [issue30026] Hashable doesn't check for __eq__
Raymond Hettinger
report at bugs.python.org
Sun Apr 9 14:40:47 EDT 2017
Raymond Hettinger added the comment:
> # Can't instantiate abstract class X with abstract methods
Sorry, this is how ABCs are supposed to work. They use @abstractmethod to specify requirements that a subclass if required to implement. The ABC metaclass then enforces that requirement, preventing instantiation unless those requirements are met. If not met, they give a reasonably clear error message, "TypeError: Can't instantiate abstract class A with abstract methods __hash__".
----------
assignee: docs at python -> rhettinger
nosy: +rhettinger
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30026>
_______________________________________
More information about the docs
mailing list