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@python -> rhettinger nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30026> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com