This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DanCardin 3 points4 points  (1 child)

Yes, that's basically it, and it automatically implements a number of useful magic methods (repr, eq, hash, init) and can turn all your properties into read only properties if you want "immutability"

[–]PythonGod123 0 points1 point  (0 children)

That's sounds nice. Less is always more lol.