Notes
cont’d
6. Metaclasses and Attributes
- A class decorator is a simple function that receives a class instance as a parameter and returns either a new class or a modified version of the original class
This could be best practice unless it breaks class API contract, since decorator is easily interchangeable and the details are hidden from class code. So user can easily observe no compatible upgrades w/o notice.