This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients docs@python, max, rhettinger
Date 2017-04-09.18:40:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491763247.05.0.35238345932.issue30026@psf.upfronthosting.co.za>
In-reply-to
Content
> # 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__".
History
Date User Action Args
2017-04-09 18:40:47rhettingersetrecipients: + rhettinger, docs@python, max
2017-04-09 18:40:47rhettingersetmessageid: <1491763247.05.0.35238345932.issue30026@psf.upfronthosting.co.za>
2017-04-09 18:40:47rhettingerlinkissue30026 messages
2017-04-09 18:40:46rhettingercreate