Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Core Python: Robust Resource and Error Handling

via Pluralsight

Overview

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.

Syllabus

  • Course Overview 1min
  • Review 4mins
  • Exception Hierarchies 5mins
  • Exception Payloads 4mins
  • User-defined Exceptions 3mins
  • Exception Chaining 5mins
  • Tracebacks 3mins
  • Assertions 13mins
  • Context Managers 14mins
  • The Context Manager Decorator 5mins
  • Multiple Context Managers in a With-Statement 5mins
  • Example: Modeling Database Transactions with Context Managers 5mins

Taught by

Austin Bingham

Reviews

4.8 rating at Pluralsight based on 53 ratings

Start your review of Core Python: Robust Resource and Error Handling

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.