Hacker News new | ask | show | jobs
by neuland 2958 days ago
The standard library is not going to have more advanced features than what the community can do, if only because of the release cycle.

Meanwhile, I was not a user of attrs before, rather I used collections.namedtuple and then typing.NamedTuple. So, data classes is a win for me and other people like me who weren't using attrs. And you can continue to use attrs without being bothered at all.

In Raymond Hettinger's talk [0] at PyCon 2018, he even says that more features from attrs will likely get added, such as data validation [1]. And that his talk was the one chance for the developer (Eric Smith) to get praise, because everyone is going to instantly second guess every decision he made.

[0] https://www.youtube.com/watch?v=T-TwcmT6Rcw

[1] see 42:36 on future directions