New submission from Jack Hargreaves: When creating an abstract class, subclassing tuple causes check for instantiation of an abstract class to be bypassed. See the associated stackoverflow question -- http://stackoverflow.com/questions/35267954/mix-in-of-abstract-class-and-namedtuple
from abc import abstractmethod, ABCMeta class AbstactClass(tuple, metaclass=ABCMeta): @abstractmethod def some_method(self): pass # following should throw a TypeError, but doesn't AbstactClass() ---------- messages: 259839 nosy: Jack Hargreaves priority: normal severity: normal status: open title: Can't create abstract tuple type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26306> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com