Hacker News new | ask | show | jobs
by ambrose2 1455 days ago
Prior to dataclasses, didn’t the library attrs come about to address a gap, and then dataclasses were added from inspiration from attrs? I mean yea, ideally the best structures were designed from the start, but the history is understandable.
1 comments

Dataclasses came out in 3.7, and TypedDicts and Protocols in 3.8. I had to check. I knew they were pretty close.
Oh I was thinking of namedtuples as the one that has been around for a while prior to dataclasses.