Advanced Metaphors in Coding with Python
summary
Compressed, code-first walkthrough of how Python features actually get used: concrete demos of metaclass hooks including the build_class hook and how ABCMeta enforces methods, the newer init_subclass (Python 3.6) alternative, practical decorator patterns, and a worked generator-to-context-manager pattern that creates and drops a temp table. Shows send/throw for exceptions, ties generators to sequencing and laziness vs eagerness, and mentions coroutine libraries like curio and Trio — useful if needing runtime hooks or enforcing class/user constraints.
AI-written summary · about
chapters (7)
- 0:00Advanced Python metaphors
- 2:52Metaclasses and constraints
- 13:27Base to derived constraints
- 28:52Decorators for function manipulation
- 43:01Generators and lazy evaluation
- 1:00:40Context managers
- 1:19:50Q&A








