News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.