2 ms·
Dataclasses are a sweet feature that I can see getting wide adoption pretty quickly. This said, they have a backport and it's mostly just sugar, so I expect one
by toyg 8y ago
Dataclasses are a sweet feature that I can see getting wide adoption pretty quickly. This said, they have a backport and it's mostly just sugar, so I expect one could probably get them working on 3.6 pypy.
- mixmastamyk 8y agoDataclasses work in 3.6 with pip pkg I believe.
- j88439h84 8y agohttp://attrs.org http://attrs.org is the inspiration for dataclasses, but attrs has more features and is available on all versions. http://www.attrs.org/en/stable/why.html#data-classes http://www.attrs.org/en/stable/why.html#data-classes