Media Summary: today I show how I figure out what's slow in a probably the most asked question on my channel -- what are those funny @ signs! I today I talk about the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ...

Pretty Python Profiling Intermediate Anthony Explains 016 - Detailed Analysis & Overview

today I show how I figure out what's slow in a probably the most asked question on my channel -- what are those funny @ signs! I today I talk about the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ... and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) - oops spoiler in the thumbnail it's str.partition, oh well -- I we talked about decorators before but I didn't show how to write a class decorator (or how it works)! - decorators: ...

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 we do a bit of time travelling to look at the very first release of following up for class decorators, here's decorators implemented as classes! - decorators: today I show how to use importlib.metadata + setuptools entrypoints to build a small plugin system! playlist: ... today I show a maintainability recommendation when writing scripts that call commands as well as a bit of caution for BSD ... today I talk about why you shouldn't use `time.time` for performance measurement as well as what you should use! -

today I talk about a boolean trap, how you can spot one in code review, and how you can fix the problem using a few

Photo Gallery

pretty python profiling (intermediate) anthony explains #016
python @decorators - (intermediate) anthony explains #002
python typing: Generator[T, S, R] (intermediate) anthony explains #297
how I made my import sorter 7x faster (intermediate) anthony explains #457
my favorite python str method! (beginner - intermediate) anthony explains #003
python: decorating a class (intermediate) anthony explains #194
python descriptors! (advanced) anthony explains #519
porting code to python **ZERO** (intermediate - advanced) anthony explains #336
python executable zipapps (intermediate) anthony explains #015
python: class-based @decorators (intermediate - advanced) anthony explains #195
a python plugin system via entrypoints (intermediate) anthony explains #128
don't use short options in scripts (beginner - intermediate) anthony explains #520
View Detailed Profile
pretty python profiling (intermediate) anthony explains #016

pretty python profiling (intermediate) anthony explains #016

today I show how I figure out what's slow in a

python @decorators - (intermediate) anthony explains #002

python @decorators - (intermediate) anthony explains #002

probably the most asked question on my channel -- what are those funny @ signs! I

python typing: Generator[T, S, R] (intermediate) anthony explains #297

python typing: Generator[T, S, R] (intermediate) anthony explains #297

today I talk about the three generic types of `typing.Generator` and what send / return type mean. - generator basics: ...

how I made my import sorter 7x faster (intermediate) anthony explains #457

how I made my import sorter 7x faster (intermediate) anthony explains #457

and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) -

my favorite python str method! (beginner - intermediate) anthony explains #003

my favorite python str method! (beginner - intermediate) anthony explains #003

oops spoiler in the thumbnail it's str.partition, oh well -- I

python: decorating a class (intermediate) anthony explains #194

python: decorating a class (intermediate) anthony explains #194

we talked about decorators before but I didn't show how to write a class decorator (or how it works)! - decorators: ...

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

porting code to python **ZERO** (intermediate - advanced) anthony explains #336

porting code to python **ZERO** (intermediate - advanced) anthony explains #336

today we do a bit of time travelling to look at the very first release of

python executable zipapps (intermediate) anthony explains #015

python executable zipapps (intermediate) anthony explains #015

today I

python: class-based @decorators (intermediate - advanced) anthony explains #195

python: class-based @decorators (intermediate - advanced) anthony explains #195

following up for class decorators, here's decorators implemented as classes! - decorators: https://youtu.be/WDMr6WolKUM ...

a python plugin system via entrypoints (intermediate) anthony explains #128

a python plugin system via entrypoints (intermediate) anthony explains #128

today I show how to use importlib.metadata + setuptools entrypoints to build a small plugin system! playlist: ...

don't use short options in scripts (beginner - intermediate) anthony explains #520

don't use short options in scripts (beginner - intermediate) anthony explains #520

today I show a maintainability recommendation when writing scripts that call commands as well as a bit of caution for BSD ...

don't use time.time() for performance measurement (beginner - intermediate) anthony explains #230

don't use time.time() for performance measurement (beginner - intermediate) anthony explains #230

today I talk about why you shouldn't use `time.time` for performance measurement as well as what you should use! -

what is a boolean trap? (programming antipattern) (beginner - intermediate) anthony explains #204

what is a boolean trap? (programming antipattern) (beginner - intermediate) anthony explains #204

today I talk about a boolean trap, how you can spot one in code review, and how you can fix the problem using a few