Skip to content
Artwork for The Real Python Podcast
The Real Python Podcast · May 29 · 1 hr 20 min

Improving Python Through PEPs and Protocols

Have you ever been confused by the naming of modules you’re importing from a package? Is there a standard way to organize and name your Python virtual environments? This week on the show, Brett Cannon returns to discuss the Python Enhancement Proposals (PEPs) he’s been working on recently. We start with PEP 794, which extends the metadata fields for Python packages to specify the import names a project provides. The metadata will help developers identify the correct project to install when they know the import name or the importable module names a project provides once installed. We dive back into WebAssembly to discuss PEP 816, which specifies the WASI support in CPython releases. We also wade into the controversy around PEP 832, which proposes standards around naming and the discovery of virtual environments. Brett shares his motivation for being a prolific author and supporter of PEPs. We discuss his promotion of standards and protocols to simplify the Python ecosystem for current and future developers. Course Spotlight: Tapping Into the Zen of Python Explore the Zen of Python and its 19 guiding principles for writing readable, practical code. Learn its history, jokes, and meaning. Topics: 00:00:00 – Introduction 00:02:01 – Prolific PEP creation 00:03:37 – Improving the future of Python through standards 00:09:30 – PEP 794 - Import Name Metadata 00:30:12 – PEP 816 - WASI (WebAssembly System Interface) Support 00:40:55 – Why the interest in WASI? 00:45:23 – Video Course Spotlight 00:47:07 – PEP 832 - Virtual Environment Discovery 01:10:02 – Type Server Protocol 01:17:41 – How can people follow your work online? 01:19:12 – Thanks and goodbye Show Links: Tall, Snarky Canadian PEP 794 – Import Name Metadata Towards fixing Python project names and import modules - Goran et al. PEP 816 – WASI Support State of WASI support for CPython: March 2026 PEP 11 – CPython platform support PEP 816: How Python is getting serious about WASM - InfoWorld PEP 832 – Virtual environment discovery Discussions on Python.org - PEP 832: virtual environment discovery Type Server Protocol = Abstract out type information type-server-protocol.md - GitHub - microsoft/pylance-release Frequently Asked Questions - Open Source by Brett Cannon Brett Cannon - mastodon.social Level up your Python skills with our expert-led courses: Writing Beautiful Pythonic Code With PEP 8 uv vs pip: Python Packaging and Dependency Management Tapping Into the Zen of Python Support the podcast & join our community of Pythonistas

0:00-1:20:10

transcript

No transcript — this publisher did not publish one.

show notes

Have you ever been confused by the naming of modules you’re importing from a package? Is there a standard way to organize and name your Python virtual environments? This week on the show, Brett Cannon returns to discuss the Python Enhancement Proposals (PEPs) he’s been working on recently.

We start with PEP 794, which extends the metadata fields for Python packages to specify the import names a project provides. The metadata will help developers identify the correct project to install when they know the import name or the importable module names a project provides once installed.

We dive back into WebAssembly to discuss PEP 816, which specifies the WASI support in CPython releases. We also wade into the controversy around PEP 832, which proposes standards around naming and the discovery of virtual environments.

Brett shares his motivation for being a prolific author and supporter of PEPs. We discuss his promotion of standards and protocols to simplify the Python ecosystem for current and future developers.

Course Spotlight: Tapping Into the Zen of Python

Explore the Zen of Python and its 19 guiding principles for writing readable, practical code. Learn its history, jokes, and meaning.

Topics:

  • 00:00:00 – Introduction
  • 00:02:01 – Prolific PEP creation
  • 00:03:37 – Improving the future of Python through standards
  • 00:09:30 – PEP 794 - Import Name Metadata
  • 00:30:12 – PEP 816 - WASI (WebAssembly System Interface) Support
  • 00:40:55 – Why the interest in WASI?
  • 00:45:23 – Video Course Spotlight
  • 00:47:07 – PEP 832 - Virtual Environment Discovery
  • 01:10:02 – Type Server Protocol
  • 01:17:41 – How can people follow your work online?
  • 01:19:12 – Thanks and goodbye

Show Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas

links17