|
|
|
|
|
by j88439h84
2918 days ago
|
|
Can anyone explain why you'd want to use dataclasses over attrs in real code? Attrs does everything they do and more. "Data Classes are intentionally less powerful than attrs. There is a long list of features that were sacrificed for the sake of simplicity and while the most obvious ones are validators, converters, and __slots__, it permeates throughout all APIs." See: http://www.attrs.org/en/stable/why.html#data-classes |
|