Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
vsmhn
· 4y ago · 0 comments
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.
Comments
No comments yet.
Better HN