Media Summary: today I talk about the best practices I try to stick to when working with `try` / `except` in today I go over the easily confusable NotImplemented and NotImplementedError -- as well as covering functools.total_ordering ... the dreaded "E722 do not use bare 'except'"! today we

Python Exception Catching And Isinstance Gotcha Beginner Intermediate Anthony Explains 247 - Detailed Analysis & Overview

today I talk about the best practices I try to stick to when working with `try` / `except` in today I go over the easily confusable NotImplemented and NotImplementedError -- as well as covering functools.total_ordering ... the dreaded "E722 do not use bare 'except'"! today we today I show off `contextlib.suppress` -- a neat helper for ignoring today I talk about how to properly type a function which catches today I walk through why I banned `assertRaises` in tests at work as well as an alternative that doesn't have this pitfall ...

Resources & Further Learning - Practice notebook →

Photo Gallery

python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247
python try except and best practices (beginner - intermediate) anthony explains #359
NotImplemented vs NotImplementedError (beginner - intermediate) anthony explains #251
what's wrong with python's blank except:? (beginner - intermediate) anthony explains #008
Learn Python EXCEPTION HANDLING in 5 minutes! 🚦
a simpler `try` / `except` (and why maybe shouldn't) (beginner - intermediate) anthony explains #516
typing: exception types (intermediate) anthony explains #082
Python Tutorial: Using Try/Except Blocks for Error Handling
why I banned python's assertRaises (intermediate) anthony explains #451
EXCEPTION HANDLING IN PYTHON by @chaithutechs247
don't run `python my/script.py`! (beginner - intermediate) anthony explains #407
Error handling in python functions with assert, isinstance, try/except and error classes
Sponsored
Sponsored
View Detailed Profile
python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247

python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247

today I talk about

python try except and best practices (beginner - intermediate) anthony explains #359

python try except and best practices (beginner - intermediate) anthony explains #359

today I talk about the best practices I try to stick to when working with `try` / `except` in

Sponsored
NotImplemented vs NotImplementedError (beginner - intermediate) anthony explains #251

NotImplemented vs NotImplementedError (beginner - intermediate) anthony explains #251

today I go over the easily confusable NotImplemented and NotImplementedError -- as well as covering functools.total_ordering ...

what's wrong with python's blank except:? (beginner - intermediate) anthony explains #008

what's wrong with python's blank except:? (beginner - intermediate) anthony explains #008

the dreaded "E722 do not use bare 'except'"! today we

Learn Python EXCEPTION HANDLING in 5 minutes! 🚦

Learn Python EXCEPTION HANDLING in 5 minutes! 🚦

exception

Sponsored
a simpler `try` / `except` (and why maybe shouldn't) (beginner - intermediate) anthony explains #516

a simpler `try` / `except` (and why maybe shouldn't) (beginner - intermediate) anthony explains #516

today I show off `contextlib.suppress` -- a neat helper for ignoring

typing: exception types (intermediate) anthony explains #082

typing: exception types (intermediate) anthony explains #082

today I talk about how to properly type a function which catches

Python Tutorial: Using Try/Except Blocks for Error Handling

Python Tutorial: Using Try/Except Blocks for Error Handling

We've all run into errors and

why I banned python's assertRaises (intermediate) anthony explains #451

why I banned python's assertRaises (intermediate) anthony explains #451

today I walk through why I banned `assertRaises` in tests at work as well as an alternative that doesn't have this pitfall ...

EXCEPTION HANDLING IN PYTHON by @chaithutechs247

EXCEPTION HANDLING IN PYTHON by @chaithutechs247

Master

don't run `python my/script.py`! (beginner - intermediate) anthony explains #407

don't run `python my/script.py`! (beginner - intermediate) anthony explains #407

today I show why running `

Error handling in python functions with assert, isinstance, try/except and error classes

Error handling in python functions with assert, isinstance, try/except and error classes

In this video, we will go through the

Python Error Handling - Visually Explained

Python Error Handling - Visually Explained

Resources & Further Learning - Practice notebook → https://go.visuallyexplained.co/user-input-and-