Python · Section 7
Exception Handling
The hierarchy every exception inherits from, the try/except/else/finally control flow that catches and recovers from one, and the production patterns — retries, backoff, boundaries, honest logging — that keep a real system from failing silently.
This section
- FundamentalsThe hierarchy every exception inherits from, the try/except/else/finally control flow that catches and recovers from one, raising your own, and linking a new exception to the one that caused it.4 core5 standard9 concepts
- Production error handlingWhere to catch exceptions in a real system, which failures are worth retrying and how to space out those retries, and the difference between what gets logged and what a caller is actually allowed to see.2 core8 standard10 concepts

