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 kj
Recipients JelleZijlstra, anuppari, gvanrossum, kj
Date 2021-09-02.15:28:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630596525.65.0.483405081051.issue45024@roundup.psfhosted.org>
In-reply-to
Content
I suspect this may be intentional. See related issues https://bugs.python.org/issue35190 and https://bugs.python.org/issue23864.

Copying verbatim from what Ivan said in the first issue:

"
The separation may look arbitrary, but the idea is quite simple. Only those classes with few methods support structural checks. Those classes have few independent abstract methods (or even just one method), while in classes with large APIs like `Sequence`, the methods are not logically independent, so you can't say a class is 100% a `Sequence` even if types/signatures of all methods are correct, because e.g. `__contains__()` and `index()` should behave in agreement with `__getitem__()`.
"
History
Date User Action Args
2021-09-02 15:28:45kjsetrecipients: + kj, gvanrossum, JelleZijlstra, anuppari
2021-09-02 15:28:45kjsetmessageid: <1630596525.65.0.483405081051.issue45024@roundup.psfhosted.org>
2021-09-02 15:28:45kjlinkissue45024 messages
2021-09-02 15:28:45kjcreate