Blog17.7K views4,422 votes0 replies4,890 following
Python Dataclasses: Immutable Value Objects with Frozen Instances, Default Factories, and Slots
A practical guide to using frozen dataclasses, default_factory for mutable defaults, and slots to cut memory and bugs in Python 3.7+ codebases.