Module 24 shows how Python’s object system works from the inside. By the end you can make your own types work with every operator and built-in, write descriptors, control how objects are created and how attributes are found, write metaclasses and know when not to, and explain how abstract base classes and dataclasses are built.
More lessons in Complete Python Programming