The Real Python Podcast

Python 3.14: Exploring the New Features

76 snips
Oct 10, 2025
Bartosz Zaczyński, a Real Python team member, and Christopher Trudeau, an instructor and course author, delve into the exciting features of Python 3.14. They explore the enhanced REPL with colorful syntax and improved commands. Zstandard compression gets a spotlight, along with safer debugging hooks and the benefits of lazy annotation evaluation. The duo highlights practical tips for adopting the new features in projects, ensuring developers are ready to embrace the latest updates!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Avoid Control Flow Inside Finally

  • Avoid return, break, or continue inside finally blocks to prevent ambiguous behavior and enable warnings to catch them.
  • Treat the new syntax warning as a prompt to refactor fragile try/except/finally logic.
INSIGHT

Safer Remote Debugging Hooks

  • CPython exposes a safer low-level API so external debuggers can attach to live processes and run PDB remotely.
  • The feature requires Python 3.14 on both sides and may need elevated privileges; it can be disabled at build time.
INSIGHT

Pathlib Adds File Ops And Cached Info

  • Pathlib adds copy, copy_into, move, move_into, and a cached .info attribute for efficient directory iteration.
  • These additions simplify common filesystem tasks and provide cached metadata for performance.
Get the Snipd Podcast app to discover more snips from this episode
Get the app