Comment on Don't let dicts spoil your code (2020)parentComments−ambrose24yPrior 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.−oivey4yDataclasses came out in 3.7, and TypedDicts and Protocols in 3.8. I had to check. I knew they were pretty close.−ambrose24yOh I was thinking of namedtuples as the one that has been around for a while prior to dataclasses.
Comments
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.
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.