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 jedwards
Recipients jedwards
Date 2019-03-28.02:54:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553741686.34.0.293525999996.issue36455@roundup.psfhosted.org>
In-reply-to
Content
Edit conflict -- indeed -- self closing.

---

I should point out that this could be fixed with something like the following:

    @classmethod
    def __subclasshook__(cls, C):
        if cls is Sequence:
            return _check_methods(C, "__reversed__", "__iter__",
                                  "__len__", "__contains__", "__getitem__")
        return NotImplemented

But seeing as it's not the only abc that is without a subclass hook, I wanted to raise an issue before I submitted a complete PR implementing subclasshooks for the rest of the abcs that need them.
History
Date User Action Args
2019-03-28 02:54:46jedwardssetrecipients: + jedwards
2019-03-28 02:54:46jedwardssetmessageid: <1553741686.34.0.293525999996.issue36455@roundup.psfhosted.org>
2019-03-28 02:54:46jedwardslinkissue36455 messages
2019-03-28 02:54:46jedwardscreate