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: ...