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