Raymond Hettinger - Dataclasses: The code generator to end all code generators - PyCon 2018

Channel:PyCon 2018 · Length:45:08 · Published:2018-05-13 · Views:129689

Watch on YouTube

Summary

Raymond Hettinger explains Python's dataclasses module, showing the problem it solves and its key design decisions. He places it in a progression from tuples and dicts through named tuples and attrs.

Why HN recommends it

HN commenters recommend it as an approachable talk from a respected Python core developer on dataclasses.

Raymond Hettinger's talks are great. — HN, 2021

Python, Ruby & scripting languages

Subtitles (excerpt)

All right, everyone. Let's try and pack in. Defrag yourselves if you can. Save some room on the end if possible. This is gonna be standing room only. So, all right. Uh, let's get started with the talk. I'd like to introduce to you Raymond Hedinger. Let's give him a round of applause. [Applause] Sphinx for slides. It's awesome. It's the fastest, easiest way to uh make slides. So, hello. My name is uh Eric Smith. It's nice to meet you. Yeah, usually when I stand up and talk, I talk about something I wrote, but now I'm talking about something that uh other people uh wrote and did a fantastic job at, and I get to be the uh vehicle who hopefully does uh justice uh to their uh uh creation. Uh I prepared the talk as a what is this all about? Uh something for us to think about together. What does this mean for us? What does it do? So, I'd like this to be a thinking exercise for us as we look at it. I'd like it to be a tutorial and I'd like my slides for you to be a recipe book of how to use it um uh to uh great effect. So, uh without further ado, let's see uh anything on this page. Interesting. No, no, no, no, no, no, no, no. Okay, on to interesting things. I'll start with the make file introduction. There we go.

On Hacker News

Raymond Hettinger's talks are great. I know it's not a succint blog post, but they are out there are watching a video is very approachable. Maybe [VIDEO] (Dataclasses! We could cheekily say Python gets better at something Rust does - dataclasses makes Python better at records.) And [LINK] This talk (2013): [LINK] Unfortunately this video is now a bit out of touch with modern Python. Another (2013… — kzrdude, 2021-05
Some of my favorite talks from Strange Loop: * Contracts For Getting More Programs Less Wrong: [LINK] * "It's Just Matrix Multiplication": Notation for Weaving: [LINK] * Hackett: a metaprogrammable Haskell: [LINK] * Git from the Ground Up: [LINK] From PyCon: * Beyond Unit Tests: Taking Your Testing to the Next Level: [LINK] * Dataclasses: The code generator to end all code generator: [VIDEO] * Au… — sn9, 2018-12
I haven't watched it yet but I saw that Raymond Hettinger presented on data classes at PyCon last week [0]. [0]: [VIDEO] — lunchladydoris, 2018-05
The standard library is not going to have more advanced features than what the community can do, if only because of the release cycle. Meanwhile, I was not a user of attrs before, rather I used collections.namedtuple and then typing.NamedTuple. So, data classes is a win for me and other people like me who weren't using attrs. And you can continue to use attrs without being bothered at all. In Ray… — neuland, 2018-05

Related videos