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

YouTube

When Is an Exception Not an Exception? Using Warnings in Python

PyCon US via YouTube

Overview

Explore Python's warning system in this informative talk from PyCon US. Discover how to handle small problems in your code that don't warrant full exceptions but shouldn't be ignored. Learn to generate, filter, and redirect warnings, customize their behavior, and even transform them into exceptions. Gain practical knowledge on effectively communicating issues to users without relying solely on print statements or raising exceptions. By the end of the talk, you'll be equipped to leverage Python's warning system to enhance your code's error handling and user feedback capabilities. Access accompanying slides for additional reference and visual aids.

Syllabus

TALK / Reuven M. Lerner / When is an exception not an exception? Using warnings in Python

Taught by

PyCon US

Reviews

Start your review of When Is an Exception Not an Exception? Using Warnings in Python

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.