The Real Python Podcast

Becoming a Better Python Developer Through Learning Rust


Listen Later

How can learning Rust help make you a better Python Developer? How do techniques required by a compiled language translate to improving your Python code? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.

We discuss a recent article by Bob Belderbos titled “Learning Rust Made Me a Better Python Developer.” Bob has been on a journey learning to program in Rust, which has made him rethink how he’s been writing Python. The compiler forced him to confront things he’d been ignoring.

We also share other articles and projects from the Python community, including recent releases, a boatload of PEPs, NumPy as a synth engine, firing and forgetting with Python’s asyncio, managing state with signals in Python, a documentation site generator for Python packages, and a tool to explain your Python environment.

This episode is sponsored by AgentField.

Video Course Spotlight: Using Loguru to Simplify Python Logging

Learn how to use Loguru for simpler Python logging, from zero-config setup and custom formats to file rotation, retention, and adding context.

Topics:

  • 00:00:00 – Introduction
  • 00:02:23 – Python 3.15.0a8, 3.14.4 and 3.13.13 Released
  • 00:03:01 – Django Security Releases: 6.0.4, 5.2.13, and 4.2.30
  • 00:03:38 – DjangoCon Europe 2027 Call for Organizers
  • 00:04:04 – PEP 803: "abi3t": Stable ABI for Free-Threaded Builds
  • 00:04:44 – PEP 829: Structured Startup Configuration via .site.toml File
  • 00:05:18 – PEP 830 – Add timestamps to exceptions and tracebacks
  • 00:05:44 – PEP 831 – Frame Pointers Everywhere: Enabling System-Level Observability for Python
  • 00:06:59 – PEP 832 – Virtual environment discovery
  • 00:10:13 – PyCoder’s Weekly - Submit a Link
  • 00:11:15 – NumPy as Synth Engine
  • 00:21:04 – Sponsor: AgentField
  • 00:22:05 – Fire and Forget at Textual
  • 00:25:39 – Learning Rust Made Me a Better Python Developer
  • 00:34:06 – Video Course Spotlight
  • 00:35:49 – Signals: State Management for Python Developers
  • 00:40:34 – great-docs: Documentation Site Generator for Python Package
  • 00:42:32 – pywho: Explain Your Python Environment and Detect Shadows
  • 00:44:01 – Thanks and goodbye
  • News:

    • Python 3.15.0a8, 3.14.4 and 3.13.13 Released
    • Django Security Releases: 6.0.4, 5.2.13, and 4.2.30
    • DjangoCon Europe 2027 Call for Organizers
    • PEP 803: "abi3t": Stable ABI for Free-Threaded Builds (Accepted)
    • PEP 829: Structured Startup Configuration via .site.toml Files (Added)
    • PEP 830 – Add timestamps to exceptions and tracebacks
    • PEP 831 – Frame Pointers Everywhere: Enabling System-Level Observability for Python
    • PEP 832 – Virtual environment discovery
    • PyCoder’s Weekly - Submit a Link
    • The Real Python Podcast
    • Show Links:

      • NumPy as Synth Engine – Kenneth has “recorded” a song in a Python script. The catch? No sampling, no recording, no pre-recorded sound. Everything was done through generating wave functions in NumPy. Learn how to become a mathematical musician.
      • Fire and Forget at Textual – In this follow up to a previous article (Fire and forget (or never) with Python’s asyncio, Michael discusses a similar article by Will McGugan as it relates to Textual. He found the problematic pattern in over 500K GitHub files.
      • Learning Rust Made Me a Better Python Developer – Bob thinks that learning Rust made him a better Python developer. Not because Rust is better, but because it made him think differently about how he has been writing Python. The compiler forced him to confront things he’d been ignoring.
      • Signals: State Management for Python Developers – If you’ve ever debugged why your cache didn’t invalidate or notifications stopped firing after a “simple” state change, this guide is for you. Signals are becoming a JavaScript standard, but Python developers can use the same patterns to eliminate “forgot to update that thing” bugs.
      • Projects:

        • great-docs: Documentation Site Generator for Python Packages
        • pywho: Explain Your Python Environment and Detect Shadows
        • Additional Links:

          • Open Source Gave Me Everything Until I Had Nothing Left to Give - Kenneth Reitz
          • Yeah… this was impressive to see. #tabla - Escalated Quickly - YouTube
          • PyTheory Is Awesome - Kenneth Reitz
          • PyTheory: Music Theory for Humans – PyTheory 0.42.1 documentation
          • A Mini DAW in the Python REPL - Kenneth Reitz
          • Episode #210: Creating a Guitar Synthesizer & Generating WAV Files With Python
          • Angine de Poitrine - Vidéos
          • Episode #195: Building a Healthy Developer Mindset While Learning Python
          • Bite‑sized Rust learning, powered by Pybites
          • Episode #214: Build Captivating Display Tables in Python With Great Tables
          • Level up your Python skills with our expert-led courses:

            • Thread Safety in Python: Locks and Other Techniques
            • NumPy Techniques and Practical Examples
            • Using Loguru to Simplify Python Logging
            • Support the podcast & join our community of Pythonistas

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

              The Real Python PodcastBy Real Python

              • 4.7
              • 4.7
              • 4.7
              • 4.7
              • 4.7

              4.7

              139 ratings


              More shows like The Real Python Podcast

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

              The Changelog: Software Development, Open Source

              288 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

              Soft Skills Engineering by Jamison Dance and Dave Smith

              Soft Skills Engineering

              287 Listeners

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

              Super Data Science: ML & AI Podcast with Jon Krohn

              306 Listeners

              Python Bytes by Michael Kennedy and Brian Okken

              Python Bytes

              214 Listeners

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

              Syntax - Tasty Web Development Treats

              985 Listeners

              Darknet Diaries by Jack Rhysider

              Darknet Diaries

              8,077 Listeners

              Tech Brew Ride Home by Morning Brew

              Tech Brew Ride Home

              964 Listeners

              Practical AI by Practical AI LLC

              Practical AI

              212 Listeners

              AWS Podcast by Amazon Web Services

              AWS Podcast

              204 Listeners

              Django Chat by William Vincent and Carlton Gibson

              Django Chat

              75 Listeners

              Last Week in AI by Skynet Today

              Last Week in AI

              313 Listeners

              Machine Learning Street Talk (MLST) by Machine Learning Street Talk (MLST)

              Machine Learning Street Talk (MLST)

              101 Listeners

              The Pragmatic Engineer by Gergely Orosz

              The Pragmatic Engineer

              77 Listeners