[issue29650] abstractmethod does not work when deriving from Exception

2017-02-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: -abstract class instantiable when subclassing dict resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing dict

[issue29650] abstractmethod does not work when deriving from Exception

2017-02-25 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. This is the case for builtin types which usually get their own __new__ methods. See #5996. -- dependencies: +abstract class instantiable when subclassing dict nosy: +xiang.zhang versions: +Python 3.5, Python 3.7

[issue29650] abstractmethod does not work when deriving from Exception

2017-02-25 Thread chrysn
New submission from chrysn: 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