8 articles on writing Python the way it was meant to be written today. Every article is a direct before/after: the pattern you used to write in 3.5-3.8, and the cleaner version available now. No Python 2.
0 of 8 read
Start anytime
From typing.List to list[int]. The full evolution.
Replace your isinstance ladders. For good.
Stop writing __init__ by hand.
% and .format() are history. Here is what replaced them.
Signatures, walrus, cache. The details that matter.
raise from, add_note, ExceptionGroup. The modern toolkit.
{**a, **b} is fine. a | b is better.
pathlib, zoneinfo, tomllib, cached_property.