
Test & Code
189: attrs and dataclasses - Hynek Schlawack
32 min•7 juni 2022
Om avsnittet
In Python, before dataclasses, we had attrs.
Before attrs, it wasn't pretty.
The story of attrs and dataclasses is actually intertwined.
They've built on each other.
And in the middle of it all, Hynek.
Hynek joins the show today to discuss some history of attrs and dataclasses, and some differences.
If you ever need to create a custom class in Python, you should listen to this episode.
Links:
- attrs documentation
- History of attrs and introduction to attrs namespace
- cattrs: Complex custom class converters for attrs. — python-attrs
- PEP 557 – Data Classes
- PEP 681 – Data Class Transforms
Fler avsnitt
Visa alla avsnitt av Test & CodeTest & Code med Brian Okken finns tillgänglig på flera plattformar. Informationen på denna sida kommer från offentliga podd-flöden.