Python Craft & Sharp Edges

Mutable defaults, slots, descriptors, and the traps senior devs still step in.

Go beyond tutorials: mutable default arguments, __slots__, functools caches, dataclass footguns, pathlib patterns, and import machinery. Battle-tested wisdom you rarely find in blog posts.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Practitioner6 lessons~4h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 5 lessons and save progress.

Course content

Footguns

  • Mutable Default Arguments (The Classic)Free14 min

Performance & API

  • 🔒__slots__ — When and Why16 min

stdlib Secrets

  • 🔒functools.lru_cache — Hashability & Memory15 min
  • 🔒pathlib vs os.path — The Modern Way14 min

Modern Python

  • 🔒dataclass Field Defaults & Ordering16 min

Under the Hood

  • 🔒importlib — Loading Modules Programmatically18 min