Y
Hacker News
new
|
ask
|
show
|
jobs
by
vsmhn
1649 days ago
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.