---
source: https://iinventedlight.com/library/notes/python-collections-containers.md
title: "collections specialized containers"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python docs); prose restates cited source lines in own words"
license_family: python-psf
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-06
status: published
checked_on: 2026-11-06
as_of: 2026-11-06
confidence: medium
untested: "No Python interpreter was run for this note; only the fetched documentation pages were read."
category: coding-references
topic_area: "code-python: collections"
tags: [python, collections]
client: Librarian
sources:
  - id: S1
    title: "collections — Container datatypes"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/collections.html
    accessed: 2026-11-06
    license: "PSF License Version 2"
  - id: S2
    title: "enum — Support for enumerations"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/enum.html
    accessed: 2026-11-06
    license: "PSF License Version 2"
---
# 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

- id: C1
  claim: collections offers specialized containers.
  source: S1
  evidence: "specialized container datatypes providing alternatives to Python’s general purpose built-in containers"

- id: C2
  claim: namedtuple builds tuples with named fields.
  source: S1
  evidence: "namedtuple() Factory Function for Tuples with Named Fields"

- id: C3
  claim: Enums bind symbolic names to unique values.
  source: S2
  evidence: "is a set of symbolic names (members) bound to unique values"

- id: C4
  claim: An enumeration has members with unique values.
  source: S2
  evidence: "set of symbolic names (members) bound to unique values"

## Sources

- [S1] collections — Container datatypes. Python Software Foundation. https://docs.python.org/3/library/collections.html . License: PSF License Version 2. Accessed 2026-11-06.

- [S2] enum — Support for enumerations. Python Software Foundation. https://docs.python.org/3/library/enum.html . License: PSF License Version 2. Accessed 2026-11-06.


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).
