We may earn an affiliate commission when you visit our partners.
Pluralsight logo

Core Python 3

Robust Resource and Error Handling

Austin Bingham and Robert Smallshire

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.

Read more

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.

Enroll now

What's inside

Syllabus

Course Overview
Review
Exception Hierarchies
Exception Payloads
Read more
User-defined Exceptions
Exception Chaining
Tracebacks
Assertions
Context Managers
The Context Manager Decorator
Multiple Context Managers in a With-Statement
Example: Modeling Database Transactions with Context Managers

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Develops skills that are highly relevant to software development by building a solid foundation in error and resource handling in Python
Strengthens an existing foundation in Python error handling by presenting intermediate concepts like exception hierarches
Builds on the dominant error handling strategy in Python, the use of exceptions
Provides a deep dive into context managers, Python's facility for safely managing resources
Develops knowledge of exception payloads and tracebacks, functions that provide more information about the error
May require learners to take other relevant courses in error and exception handling before enrolling

Save this course

Save Core Python 3: Robust Resource and Error Handling to your list so you can find it easily later:
Save

Career center

Learners who complete Core Python 3: Robust Resource and Error Handling will develop knowledge and skills that may be useful to these careers:
Database Administrator
A Database Administrator manages and maintains databases. These professionals monitor database performance, create and manage user accounts, and implement security measures. This course would be particularly relevant to a Database Administrator because it covers how to model database transactions with context managers.
Technical Writer
A Technical Writer creates user guides, technical manuals, and other documentation. This often involves writing code examples. This course provides an understanding of error handling in Python, which is an important skill for a Technical Writer who may need to write documentation for software or code.
Data Analyst
A Data Analyst collects, processes, and analyzes data to gain insights and solve problems. This often involves working with databases to extract and manipulate data. This course provides a foundation in error handling, which is crucial to ensuring that data is handled and processed correctly.
Data Scientist
A Data Scientist uses data to solve problems and make predictions. They work with large datasets to identify patterns and trends. This course provides a foundation in error handling, which is crucial to ensuring that data is handled and processed correctly.
Cloud Engineer
A Cloud Engineer designs, builds, and manages cloud computing solutions. They work with clients to understand their needs and then design and implement solutions that meet those needs. This course may be helpful for a Cloud Engineer because it provides an understanding of how to handle errors and exceptions in a cloud computing environment.
Systems Analyst
A Systems Analyst studies an organization's current business processes and identifies opportunities for improvement. They then design and implement new systems to improve efficiency and productivity. This course may be helpful for a Systems Analyst because it provides an understanding of how to handle errors and exceptions in complex systems.
Security Engineer
A Security Engineer designs and implements security measures to protect an organization's data and systems. They work with clients to understand their security needs and then design and implement solutions that meet those needs. This course may be helpful for a Security Engineer because it provides an understanding of how to handle errors and exceptions in a security environment.
Software Engineer
A Software Engineer designs, develops, and maintains software systems. The work of a Software Engineer is often critical to an organization's ongoing success. As a Software Engineer, having the ability to handle errors and raise or suppress exceptions is essential. This course can help build a foundation in error handling, by providing an understanding of exception hierarchies, user-defined exceptions, and exception chaining.
Solutions Architect
A Solutions Architect designs and implements technology solutions for organizations. They work with clients to understand their needs and then design and implement solutions that meet those needs. This course may be helpful for a Solutions Architect because it provides an understanding of how to handle errors and exceptions in a complex systems environment.
Quality Assurance Analyst
A Quality Assurance Analyst tests software to identify and fix bugs. They work with developers to ensure that software meets the requirements and is free of defects. This course may be useful for a Quality Assurance Analyst because it provides an understanding of how to handle errors and exceptions in software.
Software Quality Assurance Engineer
A Software Quality Assurance Engineer tests software to identify and fix bugs. They work with developers to ensure that software meets the requirements and is free of defects. This course may be useful for a Software Quality Assurance Engineer because it provides an understanding of how to handle errors and exceptions in software.
Product Manager
A Product Manager is responsible for the development and management of a product. They work with engineers, designers, and marketers to ensure that a product meets the needs of the market. This course may be helpful for a Product Manager because it provides an understanding of how to handle errors and exceptions in a product development environment.
Business Analyst
A Business Analyst studies an organization's business processes and identifies opportunities for improvement. They then work with stakeholders to design and implement new solutions. This course may be helpful for a Business Analyst because it provides an understanding of how to handle errors and exceptions in a business environment.
Web Developer
A Web Developer creates and maintains websites. This typically involves writing code, often in Python for more complex websites. Web Developers may also be responsible for managing databases that store information used by a website. This course helps to build a foundation in error handling, which can be crucial to preventing errors in data storage and retrieval.
Project Manager
A Project Manager plans, executes, and closes projects. They are responsible for ensuring that projects are completed on time, within budget, and to the required quality standards. This course may be useful for a Project Manager because it provides an understanding of how to handle errors and exceptions in a project environment.

Reading list

We've selected 14 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Core Python 3: Robust Resource and Error Handling.
Provides a deep dive into the Python language, covering topics such as data structures, algorithms, and object-oriented programming. It valuable resource for anyone who wants to improve their understanding of Python.
Collection of recipes that provide solutions to common Python programming problems. It great resource for anyone who wants to learn how to solve specific programming problems.
Provides a comprehensive guide to writing effective Python code. It covers topics such as code style, testing, and debugging. It valuable resource for anyone who wants to improve their Python programming skills.
Free online textbook that teaches Python programming. It great resource for anyone who wants to learn Python from the ground up.
Comprehensive guide to Python programming. It covers a wide range of topics, from basic syntax to advanced concepts.
Concise and comprehensive reference guide to Python programming. It great resource for anyone who wants to have a quick reference to Python syntax and semantics.
Comprehensive guide to the Python standard library. It great resource for anyone who wants to learn more about the built-in functions and modules that come with Python.
Guide to using Python for software design. It covers topics such as object-oriented programming, design patterns, and testing.
Guide to using Python for web development. It covers topics such as web frameworks, databases, and deployment.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Core Python 3: Robust Resource and Error Handling.
Exception Handling in Java SE
Most relevant
Exception Handling in C# 9
Most relevant
Error Handling in C# 10
Most relevant
Handling Exceptions (Java SE 8 Programmer I Certification...
Most relevant
Exception Handling in Python
Most relevant
Debugging and Error Handling in Spring Framework 6
Most relevant
Debugging and Error Handling in Spring Framework 5
Most relevant
Handling Exceptions in Java 11
Most relevant
Exception Handling in Java (Java SE 11 Developer...
Most relevant
Our mission

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.

Affiliate disclosure

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.

© 2016 - 2024 OpenCourser