Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
magnio
· 5y ago · 0 comments
In case you haven't known this, check out data classes. It is so obvious yet so useful that I don't want to write Python lower than 3.7 anymore.
Comments
[–]
nerdponx
5y ago
Worthy of note:
https://attrs.org
, which inspired dataclasses and has more features.
[–]
leadingthenet
5y ago
I’ll also plug one of my favourite python libraries:
https://pydantic-docs.helpmanual.io/
[–]
nwomack
5y ago
Yes I agree, I also use typing.NamedTuple a lot