Message339007
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. |
|
Date |
User |
Action |
Args |
2019-03-28 02:54:46 | jedwards | set | recipients:
+ jedwards |
2019-03-28 02:54:46 | jedwards | set | messageid: <1553741686.34.0.293525999996.issue36455@roundup.psfhosted.org> |
2019-03-28 02:54:46 | jedwards | link | issue36455 messages |
2019-03-28 02:54:46 | jedwards | create | |
|