This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jack Hargreaves
Recipients Jack Hargreaves
Date 2016-02-08.12:21:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454934113.76.0.551150355835.issue26306@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2016-02-08 12:21:53Jack Hargreavessetrecipients: + Jack Hargreaves
2016-02-08 12:21:53Jack Hargreavessetmessageid: <1454934113.76.0.551150355835.issue26306@psf.upfronthosting.co.za>
2016-02-08 12:21:53Jack Hargreaveslinkissue26306 messages
2016-02-08 12:21:53Jack Hargreavescreate