Skip to content

Glossary: Python Beyond the Basics

frozen dataclass

Also written: frozen=True, FrozenInstanceError

A dataclass whose instances can't be changed after creation; assigning to a field raises FrozenInstanceError. Good for values like an Expense that shouldn't change once recorded.

Where the book teaches it

Related terms

dataclassmutable / immutable