Python logo

Table of Contents

  • dataclasses — Data Classes
    • Module contents
    • Post-init processing
    • Class variables
    • Init-only variables
    • Frozen instances
    • Inheritance
    • Re-ordering of keyword-only parameters in __init__()
    • Default factory functions
    • Mutable default values
    • Descriptor-typed fields

Previous topic

warnings — Warning control

Next topic

contextlib — Utilities for with-statement contexts