Message288571
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. |
|
Date |
User |
Action |
Args |
2017-02-25 16:46:46 | chrysn | set | recipients:
+ chrysn |
2017-02-25 16:46:46 | chrysn | set | messageid: <1488041206.17.0.0120524792135.issue29650@psf.upfronthosting.co.za> |
2017-02-25 16:46:46 | chrysn | link | issue29650 messages |
2017-02-25 16:46:45 | chrysn | create | |
|