The Real Python Podcast

Exploring the New Features of Python 3.11


Listen Later

Python 3.11 is here! Our regular guests, Geir Arne Hjelle and Christopher Trudeau, return to talk about the new version. Geir Arne wrote a series of preview tutorials earlier this year, and his annual piece, titled “Python 3.11: Cool New Features for You to Try,” was published on October 24. Christopher’s video course came out the next day, covering the topics from the tutorial with visual examples of Python 3.11 in action.

Geir Arne and Christopher collaborated to create code examples for the new features. We discuss better error messages, faster code execution, task and exception groups, typing features, and native TOML support.

We dive into the updates and offer advice about ways to incorporate them into your projects. We also consider when you should start running Python 3.11.

Course Spotlight: Cool New Features in Python 3.11 – Real Python

In this video course, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python.

Topics:

  • 00:00:00 – Introduction
  • 00:02:19 – Preview series
  • 00:03:50 – Faster CPython project
  • 00:07:10 – Specializing adaptive interpreter
  • 00:11:24 – Other performance stuff
  • 00:16:07 – Sponsor: Deepgram
  • 00:16:51 – Improved tracebacks
  • 00:21:49 – Exception groups and notes
  • 00:27:22 – Self type and additional type hints
  • 00:36:14 – Video Course Spotlight
  • 00:37:27 – asyncio and task groups
  • 00:41:25 – TOML and tomllib
  • 00:46:21 – ISO date parsing
  • 00:50:09 – Negative zeros
  • 00:53:38 – Dead battery deprecations
  • 00:56:04 – Advice on upgrading
  • 01:01:01 – Thanks and goodbye
  • Show Links:

    • Python 3.11: Cool New Features for You to Try – Real Python
    • Cool New Features in Python 3.11 – Video Course
    • faster-cpython/plan.md - GitHub
    • PEP 659 – Specializing Adaptive Interpreter - peps.python.org
    • Just-in-time compilation - Wikipedia
    • Episode #381 Python Perf: Specializing, Adaptive Interpreter - Talk Python To Me Podcast
    • Episode #339 Making Python Faster with Guido and Mark - Talk Python To Me Podcast
    • “Zero cost” exception handling · Issue #84403 · python/cpython - GitHub
    • Python 3.11 Preview: Task and Exception Groups – Real Python
    • Faster Startup In Python 3.11 — Python 3.11.0 documentation
    • Python 3.11 Preview: Even Better Error Messages – Real Python
    • PEP 657 – Include Fine Grained Error Locations in Tracebacks - peps.python.org
    • Episode #105: Creating Better Error Messages for Python 3.10 & 3.11 – The Real Python Podcast
    • Exception Groups and except: Irit Katriel - YouTube
    • PEP 673 – Self Type - peps.python.org
    • PEP 646 – Variadic Generics - peps.python.org
    • How Exception Groups Will Improve Error Handling in AsyncIO - Łukasz Langa | Power IT Conference - YouTube
    • Neopythonic: Reasoning about asyncio.Semaphore
    • PEP 680 – tomllib: Support for Parsing TOML in the Standard Library - peps.python.org
    • TOML: Tom’s Obvious Minimal Language
    • Python 3.11 Preview: TOML and tomllib – Real Python
    • datetime — Basic date and time types — Python 3.11.0 documentation
    • 13 Month Calendar
    • Signed zero - Wikipedia
    • PEP 594 – Removing dead batteries from the standard library - peps.python.org
    • Level up your Python skills with our expert-led courses:

      • Cool New Features in Python 3.10
      • Cool New Features in Python 3.11
      • Python Type Checking
      • 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

        136 ratings


        More shows like The Real Python Podcast

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

        Software Engineering Radio - the podcast for professional software developers

        272 Listeners

        The Changelog: Software Development, Open Source by Changelog Media

        The Changelog: Software Development, Open Source

        283 Listeners

        Thoughtworks Technology Podcast by Thoughtworks

        Thoughtworks Technology Podcast

        41 Listeners

        Talk Python To Me by Michael Kennedy

        Talk Python To Me

        592 Listeners

        Software Engineering Daily by Software Engineering Daily

        Software Engineering Daily

        625 Listeners

        Soft Skills Engineering by Jamison Dance and Dave Smith

        Soft Skills Engineering

        269 Listeners

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

        Super Data Science: ML & AI Podcast with Jon Krohn

        296 Listeners

        Python Bytes by Michael Kennedy and Brian Okken

        Python Bytes

        213 Listeners

        Data Engineering Podcast by Tobias Macey

        Data Engineering Podcast

        142 Listeners

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

        Syntax - Tasty Web Development Treats

        983 Listeners

        DataFramed by DataCamp

        DataFramed

        266 Listeners

        Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

        Kubernetes Podcast from Google

        181 Listeners

        Practical AI by Practical AI LLC

        Practical AI

        189 Listeners

        The Stack Overflow Podcast by The Stack Overflow Podcast

        The Stack Overflow Podcast

        64 Listeners

        The Pragmatic Engineer by Gergely Orosz

        The Pragmatic Engineer

        52 Listeners