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 chrysn
Recipients chrysn
Date 2017-02-25.16:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488041206.17.0.0120524792135.issue29650@psf.upfronthosting.co.za>
In-reply-to
Content
The "TypeError: Can't instantiate abstract class C with abstract methods x" exception does not get raised when when the involved ABCMeta class is derived from an Exception.

The attached file shows that a class without an implementation of an abstractmethod can get instanciated; replacing the derivation from Exception with a derivation from another class (say, A) makes the instanciation throw the proper TypeError.
History
Date User Action Args
2017-02-25 16:46:46chrysnsetrecipients: + chrysn
2017-02-25 16:46:46chrysnsetmessageid: <1488041206.17.0.0120524792135.issue29650@psf.upfronthosting.co.za>
2017-02-25 16:46:46chrysnlinkissue29650 messages
2017-02-25 16:46:45chrysncreate