It would be helpful to have a list of functional differences between dataclasses
and attrs
, broken down by @dataclass
vs @attr.s
and field
vs attr.ib
.
This would be useful and illuminating for a few reasons:
It would make it easier to vet the logic behind, and need for, each of the proposed differences.
@hynek and @Tinche have invested years of thought into the current design: deviating from it without fully understanding the history and reasoning behind each decision might lead to this project needlessly repeating mistakes. I'm glad to see that the attrs
devs have already been brought into several issues. My hope is we can get a bird's eye view so that nothing slips through the cracks.
If the differences aren't too great (and ideally they will not be, see above) I'd like to see a dataclass
compatibility mode for attrs
(e.g. from attrs import dataclass, field
).
I'm glad that this badly-needed feature is being worked on, but sadly I'm stuck in python 2 for at least another 2 years, so it's important to me, and surely many attrs
-users, to have an easy path to adoption once this becomes part of stdlib.
vovanbo, ClaireNeveu, MRigal, darvid, jean and 5 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4