Python Bytes

#477 Lazy, Frozen, and 31% Lighter


Listen Later

Topics covered in this episode:
  • Django Modern Rest
  • Already playing with Python 3.15
  • Cutting Python Web App Memory Over 31%
  • tryke - A Rust-based Ptyhon test runner with a Jest-style API
  • Extras
  • Joke
  • Watch on YouTube

    About the show

    Sponsored by us! Support our work through:

    • Our courses at Talk Python Training
    • The Complete pytest Course
    • Patreon Supporters
    • Connect with the hosts
    • Michael: @[email protected] / @mkennedy.codes (bsky)
    • Brian: @[email protected] / @brianokken.bsky.social
    • Show: @[email protected] / @pythonbytes.fm (bsky)
    • Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 11am PT. Older video versions available there too.
      Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

      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.

                                ...more
                                View all episodesView all episodes
                                Download on the App Store

                                Python BytesBy Michael Kennedy and Brian Okken

                                • 4.7
                                • 4.7
                                • 4.7
                                • 4.7
                                • 4.7

                                4.7

                                212 ratings


                                More shows like Python Bytes

                                View all
                                The Changelog: Software Development, Open Source by Changelog Media

                                The Changelog: Software Development, Open Source

                                288 Listeners

                                The a16z Show by Andreessen Horowitz

                                The a16z Show

                                1,105 Listeners

                                Daily Tech News Show by Tom Merritt

                                Daily Tech News Show

                                1,391 Listeners

                                Software Engineering Daily by Software Engineering Daily

                                Software Engineering Daily

                                626 Listeners

                                Talk Python To Me by Michael Kennedy

                                Talk Python To Me

                                583 Listeners

                                Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

                                Super Data Science: ML & AI Podcast with Jon Krohn

                                306 Listeners

                                NVIDIA AI Podcast by NVIDIA

                                NVIDIA AI Podcast

                                343 Listeners

                                Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

                                Syntax - Tasty Web Development Treats

                                985 Listeners

                                Tech Brew Ride Home by Morning Brew

                                Tech Brew Ride Home

                                964 Listeners

                                Practical AI by Practical AI LLC

                                Practical AI

                                212 Listeners

                                The Real Python Podcast by Real Python

                                The Real Python Podcast

                                140 Listeners

                                No Priors: Artificial Intelligence | Technology | Startups by Conviction

                                No Priors: Artificial Intelligence | Technology | Startups

                                150 Listeners

                                Latent Space: The AI Engineer Podcast by Latent.Space

                                Latent Space: The AI Engineer Podcast

                                101 Listeners

                                This Day in AI Podcast by Michael Sharkey, Chris Sharkey

                                This Day in AI Podcast

                                228 Listeners

                                The AI Daily Brief: Artificial Intelligence News and Analysis by Nathaniel Whittemore

                                The AI Daily Brief: Artificial Intelligence News and Analysis

                                688 Listeners