3 ms·
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.
by magnio 5y ago
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.
- nwomack 5y agoYes I agree, I also use typing.NamedTuple a lot
- nerdponx 5y agoWorthy of note: https://attrs.org https://attrs.org, which inspired dataclasses and has more features.
- leadingthenet 5y agoI’ll also plug one of my favourite python libraries: https://pydantic-docs.helpmanual.io/ https://pydantic-docs.helpmanual.io/