News for hackers. Stuff that matters.
Re:Using attrs for everything in Python by jplahn on Thursday August 25, 2016 @06:49PM (#12363092)
This feels a little bit like Lombok in the Java world. Can anybody with experience with both comment on that?

We use Lombok a fair amount within our code to abstract away a lot of the class setup, which has been nice. But as I move more towards the Python world, I'm interested to see how attr fits in.

Re:Using attrs for everything in Python by eliasdorneles on Friday August 26, 2016 @12:19AM (#12364209)
Lombok is kinda bigger commitment than attrs, because it interfaces with Java compiler internals (last time I used it, it was only possible to compile with sun/oracle jdk).

attrs seems lesser risk IMO, it's just a plain Python library, no other deps.

If you like Lombok, I'd expect you'll love attrs. :)