//
Search across all documentation pages
12 pages in this section.
How attribute lookup, dunder methods, and classes-as-objects actually work underneath every OOP feature in Python - the model behind inheritance, dataclasses, and protocols alike.
Classes, instances, `self`, attributes, and methods the Pythonic way.
`__init__`, `__repr__`, `__eq__`, `__hash__`, operator overloading, and containers.
Boilerplate-free classes, `field`, defaults, `frozen`, and `__post_init__`.
Multiple inheritance, `super()`, and the method resolution order.
`@classmethod`, `@staticmethod`, and factory patterns.
Composition over inheritance and API design guidance.