Media Summary: today I show the tools and processes I used to improve today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I talk about an extremely common mistake with

Python Warnings Beginner Intermediate Anthony Explains 320 - Detailed Analysis & Overview

today I show the tools and processes I used to improve today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ... today I talk about an extremely common mistake with it's here! with ugly new typing syntax and infinitely nestable fstrings and one of the funniest changes I've seen in a while -- today I talk about __slots__ and __dict__ and how they relate to objects! playlist: ... today I talk about typing the two types of starargs and why it's tricky / impossible to get correct - intro to typing / mypy: ...

today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ... today I go over an extremely common pitfall with pytest and a helpful fix to prevent this from happening to you! playlist: ... today I talk about the decorator for typing and how it can be used to signal typed-dispatch to a type checker! today I talk about the `source` command -- why it exists, and why I prefer `.` over `source`! playlist: ... today I describe the history lore of pytest and how an errant CVE led to finally deleting the py library -- I show the clever trick I use ... this is the first thing I always do before opening a github issue! playlist: ...

the dreaded "E722 do not use bare 'except'"! today we I build out a simple skeleton for a command line interface in today I talk about the best practices I try to stick to when working with `try` / `except` in I totally missed this improvement when reviewing 3.12 back in the day and it's pretty significant. but I think they missed one key ... today I talk about `ExitStack` and a few uses of it: conditional contexts, variable contexts - context managers the hard way: ...

Photo Gallery

python warnings (beginner - intermediate) anthony explains #320
how I sped up python by 20ms (intermediate) anthony explains #417
python TypeGuard (PEP 647) (intermediate) anthony explains #439
python warnings defaults suck (intermediate) anthony explains #486
python 3.12 release highlights (beginner - advanced) anthony explains #548
python: what is __slots__ and __dict__ (intermediate) anthony explains #122
python: typing *args / **kwargs (intermediate) anthony explains #145
python: exception catching and isinstance gotcha (beginner - intermediate) anthony explains #247
python: what is weakref? (intermediate - advanced) anthony explains #366
are your python tests even running? (intermediate) anthony explains #438
python typing: @overload (intermediate) anthony explains #163
what is `source` and why? (beginner - intermediate) anthony explains #329
Sponsored
Sponsored
View Detailed Profile
Sponsored
Sponsored