Blog17.7K views2,413 votes0 replies3,442 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.