Media Summary: today I talk about why it's necessary to set ` today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... today I talk about insertion ordered dictionaries and when you can rely on them (cpython3.6+) and the differences between ...

Python What Is Slots And Dict Intermediate Anthony Explains 122 - Detailed Analysis & Overview

today I talk about why it's necessary to set ` today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... today I talk about insertion ordered dictionaries and when you can rely on them (cpython3.6+) and the differences between ... today I talk about how to type annotate a -- fortunately it's really easy! - what is  ... today I show off a cool workflow I used with my text editor and an ast parser and how I used it to do a code audit! - making a flake8 ... today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ...

today I talk about one of the ways to introduce magic in today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ... I goofed in my explanation of `assert_never` during the 3.11 video -- this corrects my mistakes! - what's new in oh hey, it's episode 100! today I talk about one of my favorite ways to make plain-old-data classes in today I talk about how and why I sort my imports in today I talk about the difference between len(x) and x.__len__() (as well as other similar functions!) playlist: ...

today I to into detail about data descriptors, non-data descriptors, what the point of them is, as well as a quick example! playlist: ... today I talk about `nonlocal` and how you can use it to modify variables in closure. I also show a pattern which was used previous ...

Photo Gallery

python: what is __slots__ and __dict__ (intermediate) anthony explains #122
why __slots__ = () (namedtuples) (intermediate) anthony explains #123
python typing: object vs Any (intermediate) anthony explains #275
python: {...} is faster than dict(...) (intermediate) anthony explains #223
python insertion-ordered dicts (beginner - intermediate) anthony explains #212
python typing: @property (beginner - intermediate) anthony explains #117
Python __slots__ and object layout explained
babi+ast helped me not break sentry! (intermediate) anthony explains #431
python variable unpackings (beginner - intermediate) anthony explains #031
python TypeGuard (PEP 647) (intermediate) anthony explains #439
module level __getattr__ (intermediate) anthony explains #509
python: what is weakref? (intermediate - advanced) anthony explains #366
View Detailed Profile
python: what is __slots__ and __dict__ (intermediate) anthony explains #122

python: what is __slots__ and __dict__ (intermediate) anthony explains #122

today I talk about

why __slots__ = () (namedtuples) (intermediate) anthony explains #123

why __slots__ = () (namedtuples) (intermediate) anthony explains #123

today I talk about why it's necessary to set `

python typing: object vs Any (intermediate) anthony explains #275

python typing: object vs Any (intermediate) anthony explains #275

today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ...

python: {...} is faster than dict(...) (intermediate) anthony explains #223

python: {...} is faster than dict(...) (intermediate) anthony explains #223

today I talk about why

python insertion-ordered dicts (beginner - intermediate) anthony explains #212

python insertion-ordered dicts (beginner - intermediate) anthony explains #212

today I talk about insertion ordered dictionaries and when you can rely on them (cpython3.6+) and the differences between ...

python typing: @property (beginner - intermediate) anthony explains #117

python typing: @property (beginner - intermediate) anthony explains #117

today I talk about how to type annotate a @property -- fortunately it's really easy! - what is @property ...

Python __slots__ and object layout explained

Python __slots__ and object layout explained

Save memory using

babi+ast helped me not break sentry! (intermediate) anthony explains #431

babi+ast helped me not break sentry! (intermediate) anthony explains #431

today I show off a cool workflow I used with my text editor and an ast parser and how I used it to do a code audit! - making a flake8 ...

python variable unpackings (beginner - intermediate) anthony explains #031

python variable unpackings (beginner - intermediate) anthony explains #031

today I

python TypeGuard (PEP 647) (intermediate) anthony explains #439

python TypeGuard (PEP 647) (intermediate) anthony explains #439

today we go over narrowings and `TypeGuard` -- which enables you to write your own user-defined narrowings! playlist: ...

module level __getattr__ (intermediate) anthony explains #509

module level __getattr__ (intermediate) anthony explains #509

today I talk about one of the ways to introduce magic in

python: what is weakref? (intermediate - advanced) anthony explains #366

python: what is weakref? (intermediate - advanced) anthony explains #366

today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ...

assert_never / assert_type **CORRECTION** (intermediate) anthony explains #435

assert_never / assert_type **CORRECTION** (intermediate) anthony explains #435

I goofed in my explanation of `assert_never` during the 3.11 video -- this corrects my mistakes! - what's new in

intro to python namedtuples! (beginner - intermediate) anthony explains #100

intro to python namedtuples! (beginner - intermediate) anthony explains #100

oh hey, it's episode 100! today I talk about one of my favorite ways to make plain-old-data classes in

sort your imports! (beginner - intermediate) anthony explains #085

sort your imports! (beginner - intermediate) anthony explains #085

today I talk about how and why I sort my imports in

python: len(x) vs x.__len__() (beginner - intermediate) anthony explains #131

python: len(x) vs x.__len__() (beginner - intermediate) anthony explains #131

today I talk about the difference between len(x) and x.__len__() (as well as other similar functions!) playlist: ...

Python dictionaries are easy 📙

Python dictionaries are easy 📙

python

python descriptors! (advanced) anthony explains #519

python descriptors! (advanced) anthony explains #519

today I to into detail about data descriptors, non-data descriptors, what the point of them is, as well as a quick example! playlist: ...

python: what is `nonlocal` (intermediate) anthony explains #169

python: what is `nonlocal` (intermediate) anthony explains #169

today I talk about `nonlocal` and how you can use it to modify variables in closure. I also show a pattern which was used previous ...