Python Bytes podcast

#477 Lazy, Frozen, and 31% Lighter

20/4/2026
0:00
45:52
Manda indietro di 15 secondi
Manda avanti di 15 secondi
Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by us! Support our work through:

Michael #1: Django Modern Rest

  • Modern REST framework for Django with types and async support
  • Supports Pydantic, Attrs, and msgspec
  • Has ai coding support with llms.txt
  • See an example at the “showcase” section

Brian #2: Already playing with Python 3.15

  • 3.15.0a8, 2.14.4 and 3.13.13 are out
    • Hugo von Kemenade
  • beta comes in May, CRs in Sept, and Final planned for October
  • But still, there’s awesome stuff here already, here’s what I’m looking forward to:
    • PEP 810: Explicit lazy imports
    • PEP 814: frozendict built-in type
    • PEP 798: Unpacking in comprehensions with * and **
    • PEP 686: Python now uses UTF-8 as the default encoding

Michael #3: Cutting Python Web App Memory Over 31%

  • I cut 3.2 GB of memory usage from our Python web apps using five techniques:
    • async workers
    • import isolation
    • the Raw+DC database pattern
    • local imports for heavy libraries
    • disk-based caching
  • See the full article for details.

Brian #4: tryke - A Rust-based Ptyhon test runner with a Jest-style API

  • Justin Chapman
  • Watch mode, Native async support, Fast test discovery, In-source testing, Support for doctests, Client/server mode for fast editor integrations, Pretty, per-assertion diagnostics, Filtering and marks, Changed mode (like pytest-picked), Concurrent tests, Soft assertions,
  • JSON, JUnit, Dot, and LLM reporters
  • Honestly haven’t tried it yet, but you know, I’m kinda a fan of thinking outside the box with testing strategies so I welcome new ideas.

Extras

Brian:

  • Why are’t we uv yet?
    • Interesting take on the “agents prefer pip”
    • Problem with analysis.
      • Many projects are libraries and don’t publish uv.lock file
      • Even with uv, it still often seen as a developer preference for non-libarries. You can sitll use uv with requirements.txt
  • PyCon US 2026 talks schedule is up
    • Interesting that there’s an AI track now. I won’t be attending, but I might have a bot watch the videos and summarize for me. :)
  • What has technology done to us?
    • Justin Jackson
  • Lean TDD new cover
    • Also, 0.6.1 is so ready for me to start f-ing reading the audio book and get on with this shipping the actual f-ing book and yes I realize I seem like I’m old because I use “f-ing” while typing. Michael:
  • Python 3.14.4 is out
  • Beanie 2.1 release

Joke: HumanDB - Blazingly slow. Emotionally consistent.

Altri episodi di "Python Bytes"