The Real Python Podcast

Exploring the New Features of Python 3.12


Listen Later

Python 3.12 is here! Our regular guests, Geir Arne Hjelle and Christopher Trudeau, return to discuss the new version. Geir Arne coordinated a series of preview articles with several members of the Real Python team this year, and his showcase tutorial, “Python 3.12: Cool New Features for You to Try,” came out on October 2. Christopher’s video course was posted the next day, covering the topics from the article with visual examples of Python 3.12 in action.

Geir Arne and Christopher collaborated to create code examples of the new features. We discuss better error messaging, more intuitive f-strings, subinterpreters, the Linux perf profiler, improved typing syntax, and more.

We dig into the updates and offer advice on incorporating them into your projects. We also consider when you should start running Python 3.12.

Course Spotlight: What’s New in Python 3.12

In this video course, you’ll explore the new features that Python 3.12 brings to the table. These include improved f-strings, better error messages, changes to CPython internals, additions to static typing, and more.

Topics:

  • 00:00:00 – Introduction
  • 00:02:15 – Preview tutorials
  • 00:05:08 – Ever better error messages
  • 00:10:03 – More powerful f-strings
  • 00:15:46 – Comprehension inlining & additional optimizations
  • 00:21:24 – Support for subinterpreters
  • 00:27:55 – Support for the Linux perf profiler
  • 00:32:02 – Immortal objects
  • 00:35:01 – Video Course Spotlight
  • 00:36:03 – Calendar constants for days and months
  • 00:38:48 – New itertools.batched() for grouping Items
  • 00:40:53 – Improved type variable syntax
  • 00:50:51 – New Path.walk() for listing files in subdirectories
  • 00:53:04 – Override decorator for static typing
  • 00:57:36 – Advice on upgrading
  • 01:03:08 – Thanks to the core developer team
  • 01:04:39 – Thanks to the Real Python team and goodbye
  • Show Links:

    • Python 3.12: Cool New Features for You to Try
    • Python Release Python 3.12.0 - Python.org
    • Python 3.12 Preview: Ever Better Error Messages
    • Python 3.12 Preview: More Intuitive and Consistent F-Strings
    • PEP 701 – Syntactic formalization of f-strings
    • PEP 709 – Inlined comprehensions
    • Python 3.12 Preview: Subinterpreters
    • PEP 554 – Multiple Interpreters in the Stdlib
    • PEP 684 – A Per-Interpreter GIL
    • Python 3.12 Preview: Support For the Linux perf Profiler
    • PEP 683 – Immortal Objects, Using a Fixed Refcount
    • PEP 695 – Type Parameter Syntax
    • Python 3.12 Preview: Static Typing Improvements
    • PEP 698 – Override Decorator for Static Typing
    • Level up your Python skills with our expert-led courses:

      • Python Type Checking
      • What's New in Python 3.12
      • Cool New Features in Python 3.11
      • 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

        134 ratings


        More shows like The Real Python Podcast

        View all
        Hanselminutes with Scott Hanselman by Scott Hanselman

        Hanselminutes with Scott Hanselman

        377 Listeners

        Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

        Software Engineering Radio - the podcast for professional software developers

        265 Listeners

        The Changelog: Software Development, Open Source by Changelog Media

        The Changelog: Software Development, Open Source

        287 Listeners

        LINUX Unplugged by Jupiter Broadcasting

        LINUX Unplugged

        262 Listeners

        Thoughtworks Technology Podcast by Thoughtworks

        Thoughtworks Technology Podcast

        41 Listeners

        Talk Python To Me by Michael Kennedy

        Talk Python To Me

        585 Listeners

        Software Engineering Daily by Software Engineering Daily

        Software Engineering Daily

        628 Listeners

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

        Super Data Science: ML & AI Podcast with Jon Krohn

        295 Listeners

        Python Bytes by Michael Kennedy and Brian Okken

        Python Bytes

        213 Listeners

        Data Engineering Podcast by Tobias Macey

        Data Engineering Podcast

        140 Listeners

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

        Syntax - Tasty Web Development Treats

        987 Listeners

        CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

        CoRecursive: Coding Stories

        186 Listeners

        DataFramed by DataCamp

        DataFramed

        269 Listeners

        Practical AI by Practical AI LLC

        Practical AI

        190 Listeners

        The Stack Overflow Podcast by The Stack Overflow Podcast

        The Stack Overflow Podcast

        63 Listeners