4 ms·
FYI if you haven't heard of it, attrs (https://www.attrs.org/en/stable/ https://www.attrs.org/en/stable/) is a package very similar to dataclasses that does sup
by etbebl 6y ago
FYI if you haven't heard of it, attrs (https://www.attrs.org/en/stable/ https://www.attrs.org/en/stable/) is a package very similar to dataclasses that does support aromatically adding __slots__. I believe dataclasses was bases on it.
- etbebl 6y ago*based. Also @ericvsmith please correct me if I'm wrong - don't remember where I read that.
- ericvsmith 6y agoYes, attrs is the spiritual parent of dataclasses, including the decision to not use metaclasses. Thanks for mentioning this: I try to always give credit to Hynek and attrs.