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.
Special Guest: Hynek Schlawack.
Sponsored By:
Links:
<p>In Python, before dataclasses, we had attrs.<br> Before attrs, it wasn't pretty.</p> <p>The story of attrs and dataclasses is actually intertwined. <br> They've built on each other.<br> And in the middle of it all, Hynek.</p> <p>Hynek joins the show today to discuss some history of attrs and dataclasses, and some differences.</p> <p>If you ever need to create a custom class in Python, you should listen to this episode.</p><p>Special Guest: Hynek Schlawack.</p><p>Sponsored By:</p><ul><li><a href="http://rollbar.com/testandcode" rel="nofollow">Rollbar</a>: <a href="http://rollbar.com/testandcode" rel="nofollow">With Rollbar, developers deploy better software faster.</a></li></ul><p>Links:</p><ul><li><a href="https://www.attrs.org/en/stable/" title="attrs documentation" rel="nofollow">attrs documentation</a></li><li><a href="https://hynek.me/articles/import-attrs/" title="History of attrs and introduction to attrs namespace" rel="nofollow">History of attrs and introduction to attrs namespace</a></li><li><a href="https://github.com/python-attrs/cattrs" title="cattrs: Complex custom class converters for attrs." rel="nofollow">cattrs: Complex custom class converters for attrs.</a> — python-attrs</li><li><a href="https://peps.python.org/pep-0557/" title="PEP 557 – Data Classes" rel="nofollow">PEP 557 – Data Classes</a></li><li><a href="https://peps.python.org/pep-0681/" title="PEP 681 – Data Class Transforms" rel="nofollow">PEP 681 – Data Class Transforms</a></li></ul>