James Edwards <jh...@jheiv.com> added the comment:

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.

----------
nosy:  -josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36455>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to