RSS Amplifier

Blog

Python Koans

A Python newsletter for developers who want to learn Python through short puzzles and deep explanations

pythonkoans.substack.comSource feed ↗10 posts

Live Last read · last published · next check

Written by

Latest posts

Koan 20: The Unreliable Messenger

Exploring traps in try/finally blocks, and the reasoning behind PEP601 and PEP765

Koan 19: The Unhelpful Eclipse

On the fragility of unintended behavior and the wisdom of explicit paths

Koan 18: The Loose Bundle

Exploring the pitfalls of raw string literals in Python

Koan 17: The Watchman at the Gate

A look into Python's regex module

Koan 9: The Unfired Pot REDUX

Experience is simply the name we give our mistakes - Oscar Wilde

Koan 16: The Master's Lesson

Why we need "if __name__ == '__main__'"

Koan 15: The Invisible Ink

Understanding Unicode equivalence and the deceptive nature of glyphs

Koan 14: The Missing Grain

When distributing python package_data goes wrong

Koan 13: The Empty Bowl

Understanding Python dataclasses and how fields determine equality and hashing.

Koan 12: The Blacksmith's Hammer

Exploring the dangerous power of unquoted Python strings, and how they caused CVE-2024-9287