Advanced Language Patterns
- Metaclasses, rarely. A metaclass customises class creation itself: powerful, and rightly rare outside frameworks.
- Pattern matching. Structural match statements destructure data by shape: cases read like the shapes they handle.
- Knowing the idiom. Mastery sounds like idiom: unpacking, comprehensions, context managers and generators used where they belong.
Architecture and Maintainability
- Boundaries and seams. Large Python survives through boundaries: modules with narrow, typed seams a test can grip.
- Dependency direction. Business logic imports nothing about the web or the database: dependencies point inward, adapters at the edge.
- When Python fits. Python wins on development speed and ecosystem; it cedes raw CPU and static guarantees: say so honestly.
Reading and Improving Complex Python Systems
- Reading strategy. Enter an unfamiliar codebase at its entry point and follow one real request end to end before judging.
- Refactoring under tests. A safe refactor changes structure under a green suite: behaviour pinned while the shape improves.
- Explaining and defending. You own a system when you can explain each design choice and what breaks if it changes.
Before and after this level
- Before: Level 16: Packaging & Production Python: Packaging and Distribution, Configuration, Logging and Environments, Production-Grade Python Design.
- Next: this is the last level. The course ends with its projects; see the course outline.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Python Level 17: Python Mastery cover?
Advanced Language Patterns, Architecture and Maintainability, Reading and Improving Complex Python Systems: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 16: Packaging & Production Python, which covers Packaging and Distribution, Configuration, Logging and Environments, Production-Grade Python Design.