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 instanciated; replacing the derivation from Exception with a derivation from another class (say, A) makes the instanciation throw the proper TypeError. ---------- files: demo.py messages: 288571 nosy: chrysn priority: normal severity: normal status: open title: abstractmethod does not work when deriving from Exception type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file46668/demo.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29650> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com