Python Bytes

#460 Overlooked Python Typing

17 snips
Dec 1, 2025
The Advent of Code kicks off with some exciting changes this year. Django 6 is on the horizon, bringing support for Python 3.12 and new features like Content Security Policy support and a built-in tasks framework. The hosts dive into advanced, often overlooked Python typing gems that can streamline your code. They also introduce codespell, a tool to catch typos in your projects. To lighten the mood, there's a hilarious 'No as a Service' API that provides excuses for saying no.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Practice With Advent Of Code

  • Try Advent of Code to practice coding puzzles in any language and track progress with helpers like Elf.
  • Use the shorter 12-day format this year to actually complete more puzzles and learn consistently.
INSIGHT

Django 6 Pushes Modern Python Usage

  • Django 6 focuses on modern Python and drops older versions to push adoption of faster, leaner runtimes.
  • New features like CSP, template partials, and background tasks remove common friction for web apps.
ADVICE

Use Django's New Security And Task Tools

  • Use Django's built-in Content Security Policy to reduce XSS and content injection risks by setting appropriate headers.
  • Leverage the new background tasks feature to offload non-critical work instead of building separate queue systems.
Get the Snipd Podcast app to discover more snips from this episode
Get the app