News for hackers. Stuff that matters.
Re:Python 3.7 released by foxylad on Wednesday June 27, 2018 @10:21PM (#17413580)
I've become a heavy user of attrs, a small library that makes it easy to replace named tuples with a class that automatically includes initialisation and string representation functions.

So I'm very glad to see data classes bringing this to the core language.

Re:Python 3.7 released by j88439h84 on Wednesday June 27, 2018 @11:23PM (#17413834)
Why? attrs does it already.
Re:Python 3.7 released by steve_adams_86 on Wednesday June 27, 2018 @11:35PM (#17413877)
I'm not a python dev, but isn't less dependencies generally better? Or is attrs in Python natively already?
Re:Python 3.7 released by j88439h84 on Thursday June 28, 2018 @12:12AM (#17414004)
Attrs isn't in python natively. Not sure why less dependencies would be better though.
Re:Python 3.7 released by steve_adams_86 on Thursday June 28, 2018 @09:43AM (#17416760)
Every dependency is one more thing that can go wrong in my mind. I always drop them at every opportunity.

There are some exceptions. Like I really don't want form building to be in the standard library, and I don't want to write it myself.

It is nice when your package manager only takes a short manage to fetch and build though, and you can have more confidence that any mistakes will be your own (under your control) rather than someone else's.

Re:Python 3.7 released by Spiritus on Thursday June 28, 2018 @02:12AM (#17414486)
One less thing to worry about. Adds to build time etc.
Re:Python 3.7 released by Retra on Thursday June 28, 2018 @03:00AM (#17414665)
Python does a lot of things that libraries can do. "Batteries included" and whatnot.