Re:The Data Classes Decorator
by vsmhn on Sunday December 12, 2021 @06:49AM
(#29528829)
NamedTuple works great for a lot of cases, but not always. For example, when dealing with attribute defaults for mutable collections.
Dataclasses have a `default_factory` that is used in these occasions.
[ Parent
| on HN ]
There are no comments on this comment yet.