-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
This will probably get closed as a duplicate, but I think it is high time that we provide actual interface definitions for the various collection categories listed on the "Collections and Data Structures" page of the manual. That page hints at interfaces for the various categories, but does not provide a clear guide to which methods are required and which methods are optional in order to implement the various interfaces. (Plus, that page includes docstrings for a bunch of functions that most likely do not need to be implemented by new types.)
Here is a list of collection interfaces from that page that need better documentation on the interface requirements:
- General Collections
- Indexable Collections
- Dictionaries (
AbstractDict) - Set-Like Collections (
AbstractSet) - Dequeues
See also #34677 and #25941. And also #28784 for documentation of the AbstractString interface.