[Python-Dev] abstractmethod doesn't work in classes
Hello, I've found that abstractmethod and similar decorators don't work in classes, inherited from built-in types other than object. For example: import abc class MyBase(metaclass=abc.ABCMeta): @abc.abstractmethod def foo(): pass MyBase() Traceback (most recent call last):
Re: [Python-Dev] abstractmethod doesn't work in classes
I've found that abstractmethod and similar decorators don't work in classes, inherited from built-in types other than object. http://bugs.python.org/issue5996 ___ Python-Dev mailing list Python-Dev@python.org