Y
Hacker News
new
|
ask
|
show
|
jobs
by
toyg
2688 days 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.
2 comments
j88439h84
2688 days ago
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
link
mixmastamyk
2688 days ago
Dataclasses work in 3.6 with pip pkg I believe.
link
http://www.attrs.org/en/stable/why.html#data-classes