Python Variable Unpackings Beginner Intermediate Anthony Explains 031 - Detailed Analysis
today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ... oops spoiler in the thumbnail it's str.partition, oh well -- I 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 we go over the brand new variadic generics and how they change the type system (finally type-able `*args`!) - generics: ... today I talk about why dictionary literals (and other literals) are faster than their function-called counterparts - oh hey, it's episode 100! today I talk about one of my favorite ways to make plain-old-data classes in
today I go over all the tools I use to set up my projects, as well as the differences between 1-file libraries, multi-file libraries, and ... today I show how imports work and how functions retain access to their global today I show a common swapping technique in today I talk about `nonlocal` and how you can use it to modify today I talk about the singleton pattern and a bunch of different ways to implement it in 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 Optional and a few approaches to typing the return value of `re.match` (which returns an Optional[Match[str]])! today I show how to easily make classes comparable in
Photo Gallery



















