Errors and Exceptions, Python Software Foundation, 2024 - The official Python tutorial chapter on errors and exceptions provides a fundamental and authoritative explanation of Python's exception handling mechanism, including try-except blocks, specific exception types, and the raise statement.
Fluent Python: Clear, Concise, and Effective Programming, Luciano Ramalho, 2022 (O'Reilly Media) - This book provides a detailed examination of Python's features, including effective practices for exception handling, context managers, and creating resilient code. It is suitable for intermediate Python programmers aiming for comprehension beyond introductory concepts.
Python for Data Analysis, Wes McKinney, 2022 (O'Reilly Media) - While focused on data analysis, this book shows comprehensive Python programming in data processing workflows. It illustrates how careful error handling is important for managing imperfect or unexpected data, making it directly applicable to machine learning pipelines.