(Replying to PARENT post)
As soon as I opened the article I pressed Cmd+F and searched for "dataclasses".
This article was correct and addressed a very real need in Python programming—for year 2016. By now it is obsolete and today's standard library module `dataclasses` does all of that and more.
👤hamstergene🕑4y🔼0🗨️0
(Replying to PARENT post)
Using @dataclass the example from OP would look like:
[1]: https://docs.python.org/3/library/dataclasses.html[2]: https://www.python.org/dev/peps/pep-0557/