Back to the map
Course 14 · Expert
Decorators & Python Internals
Bend functions, objects and classes to your will
Peek behind Python's curtain. Wrap functions with decorators, teach
your objects to work with operators and len(), control attribute access with
descriptors, and build classes with code: metaclasses, plugin registries,
introspection and syntax trees.
- Chapter 1
Wrap Behavior
Closures and decorators: add powers to functions without touching their code.
0/8 - Chapter 2
Object Protocols
Dunder methods: teach your objects to speak Python's built-in language.
0/6 - Chapter 3
Metaprogramming
Code that writes, inspects and reads code.
0/5