10 Python Features You’re Not Using (But Really Should)
From ArjanCodes · · 20 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
Python has a lot of powerful features hiding in plain sight, and many developers never really use them. In this video, you’ll see a series of small but impactful Python features that make real code cleaner, safer, and faster, illustrated with concrete before-and-after examples. If you’ve been writing Python for a while and want to level up how your code reads and behaves, this video will give you a few good “wait… Python can do that?” moments.
🔥 GitHub Repository: https://git.arjan.codes/2026/features.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses.
💬 Join my Discord server: https://discord.arjan.codes.
⌨️ Keyboard I’m using: https://amzn.to/49YM97v.
🔖 Chapters: 0:00 Intro 1:01 Why These Features Matter 1:27 1. functools.cache 2:32 2. typing.Protocol 5:46 3. dataclasses.replace 8:27 4. itertools.pairwise 9:36 5. Assignment Expressions (:=) 10:52 6. pathlib 12:40 7. contextlib.suppress 13:59 8. contextvars 16:44 9. match with guards 18:25 10. contextlib.ExitStack 20:13 Final Thoughts
#arjancodes #softwaredesign #python