← All notes

collections specialized containers

collections implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers. [S1]

Alternatives to builtins

specialized container datatypes providing alternatives to Python’s general purpose built-in containers. [S1]

namedtuple() Factory Function for Tuples with Named Fields. [S1]

Enums for named values

is a set of symbolic names (members) bound to unique values. [S2]

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Source: Python Software Foundation (Python 3 docs). PSF License Version 2 (https://docs.python.org/3/license.html).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, collections — Container datatypes, PSF License Version 2; Python Software Foundation, enum — Support for enumerations, PSF License Version 2.

Cite this

Permanent ID: iil:note:z3xyqv38

iinventedlight. 2026. "collections specialized containers." iinventedlight Library, iil:note:z3xyqv38, version of 2026-11-06. https://iinventedlight.com/library/notes/python-collections-containers/. License: CC-BY-4.0.

@misc{iil_note_z3xyqv38,
  author = {{iinventedlight}},
  title = {{collections specialized containers}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-06},
  url = {https://iinventedlight.com/library/notes/python-collections-containers/},
  note = {Permanent ID iil:note:z3xyqv38. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/python-collections-containers.md.