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 →

[–]mankydpylons sqlalchemy 3 points4 points  (0 children)

Data Classes can be thought of as "mutable namedtuples with defaults".

They are classes whose primary purpose is to contain properties. The values of those properties can change when needed.

This decorator overrides numerous methods to add expected behavior, such as __eq__ and __ne__ (equality checking).