News for hackers. Stuff that matters.
Re:Using attrs for everything in Python by skrause on Thursday August 25, 2016 @05:01PM (#12362475)
If you just want an object that stores a few attributes and you don't want to define a namedtuple, you can use types.SimpleNamespace in Python >= 3.3: https://docs.python.org/3.5/library/types.html#types.SimpleN...

It's a pretty unknown feature from the stdlib, but sometimes very useful.

There are no comments on this comment yet.