3 ms·
Much of the code in the post could be simplified by using the awesome `attrs` package [1]. Or if / when PEP 557 gets adopted. [1]: https://github.com/python-a
by fermigier 9y ago
Much of the code in the post could be simplified by using the awesome `attrs` package [1].
Or if / when PEP 557 gets adopted.
[1]: https://github.com/python-attrs/attrs https://github.com/python-attrs/attrs
[2]: https://www.python.org/dev/peps/pep-0557/ https://www.python.org/dev/peps/pep-0557/
- smegel 9y agoThat looks good. Python has long needed something like this.