Exceptions are ubiquitous in Python. In this course, you'll broaden your knowledge of exceptions and how to work with them. You'll also be introduced to context managers, Python's facility for safely and automatically managing resources.
Exceptions are ubiquitous in Python. In this course, you'll broaden your knowledge of exceptions and how to work with them. You'll also be introduced to context managers, Python's facility for safely and automatically managing resources.
The dominant error handling strategy in Python is the use of exceptions, and exceptions are ubiquitous in the Python language, standard library, and package ecosystem. In this course, Core Python 3: Robust Resource and Error Handling, you’ll understand how to work with exceptions in Python. First, you’ll be introduced to context managers, Python’s facility for safely and automatically managing resources. Next, you'll see how larger systems often benefit greatly from more sophisticated exception handling strategies. Finally, you'll discover how to model database transactions. When you're finished with this course, you’ll know how to chain associated exception together, define your own exceptions, and define and deploy context managers.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.