Skip to content

Taking collection interfaces seriously #52705

@CameronBieganek

Description

@CameronBieganek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionsData structures holding multiple items, e.g. setsdocsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions