Media Summary: today I show off `contextlib.suppress` -- a neat helper for ignoring exceptions as well as why you might not want to use it! playlist: ... today I talk about exception handling in python, how to handle multiple types, how to handle variables types, and the difference ... today I show a maintainability recommendation when writing scripts that call commands as well as a bit of caution for BSD ...

A Simpler Try Except And Why Maybe Shouldnt Beginner Intermediate Anthony Explains 516 - Detailed Analysis & Overview

today I show off `contextlib.suppress` -- a neat helper for ignoring exceptions as well as why you might not want to use it! playlist: ... today I talk about exception handling in python, how to handle multiple types, how to handle variables types, and the difference ... today I show a maintainability recommendation when writing scripts that call commands as well as a bit of caution for BSD ... today's video is a little bit different, I usually don't do opinion pieces but I get asked about this enough that I thought I'd throw it into ... today I show `__file__` and how you can use it to find files relative to python scripts / modules! - what's new in python 3.9: ... today I show off a cool little tool: `uq` -- the "universal serializer". it's useful for chaining configuration file contents to the jq (a json ...

this is the first thing I always do before opening a github issue! playlist: ... exception = An event that interrupts the flow of a program # (ZeroDivisionError, TypeError, ValueError) # 1. today I talk about how to properly type a function which catches exceptions based on a type parameter! related videos: ... today I talk about currying, show an example with pure python and then introduce `functools.partial` as today I issue a correction to my very first video and today I talk about `casefold` and the edge cases it handles that aren't handled by `.lower()`! playlist: ...

We've all run into errors and exceptions while writing Python programs. In this video, we will learn how we can handle exceptions ... today I talk about tracebacks! how to read them, why python's are the right-side-up, and how `raise from` affects multi-tracebacks! today I talk about the approach I take to gradual typing in python -- I don't bother with tests (and why)! - intro to typing / mypy: ... today I go over short-circuit evaluation and how you can use it to avoid errors as well as some tricks for (ab)using logical ... Stop letting your Python programs crash! In this

Photo Gallery

a simpler `try` / `except` (and why maybe shouldn't) (beginner - intermediate) anthony explains #516
python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247
python try except and best practices (beginner - intermediate) anthony explains #359
don't use short options in scripts (beginner - intermediate) anthony explains #520
`else` is good, actually (beginner - intermediate) anthony explains #313
python: what is `__file__`? (beginner - intermediate) anthony explains #375
useful tools: uq (beginner - intermediate) anthony explains #192
what's wrong with python's blank except:? (beginner - intermediate) anthony explains #008
do this first before opening an issue (beginner) anthony explains #494
Learn Python EXCEPTION HANDLING in 5 minutes! 🚦
typing: exception types (intermediate) anthony explains #082
python: functools.partial (beginner - intermediate) anthony explains #254
Sponsored
Sponsored
View Detailed Profile
Sponsored
Sponsored