Chapter 8: Exceptional Python
This chapter provides a detailed overview of Python's system for handling unexpected events through the use of exceptions. Exceptions are a key component of any robust software application as they enable the program to gracefully recover from errors and continue functioning properly.
In order to fully grasp the concept of exceptions, we will explore the various ways in which Python allows us to interact with them, including how to handle exceptions and even create our own custom exceptions. We will delve into the importance of proper exception handling in software development, examining real-world examples and best practices for implementing effective exception handling strategies.
By the end of this chapter, you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access