pyrecord
pyrecord copied to clipboard
Pythonic Record Types.
As the project is, declaration (or initialization) of records with many attributes (which can be a legitimate use case) is long and verbose.
E.g., REST API client, energy consumption appliance (via USB), app configuration. Also talk about the "primitive obsession" anti-pattern.
# Option A: Mutability at Instance Level Should this be supported at the class or instance level? Python tends to distinguish between immutable vs mutable at the class level (e.g.,...
If they have to import any exception class, they're doing something wrong. They signal a mistake that the developer has made, like AssertionError