From 4d690df5cd1f6af8fa96110e4721d27625d770f8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 1 Dec 2025 22:15:40 +0000 Subject: [PATCH 1/3] Withdraw PEP 534 --- peps/pep-0534.rst | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/peps/pep-0534.rst b/peps/pep-0534.rst index e2c2594175f..b1a1fc1c1d9 100644 --- a/peps/pep-0534.rst +++ b/peps/pep-0534.rst @@ -3,7 +3,7 @@ Title: Improved Errors for Missing Standard Library Modules Author: Tomáš Orsava , Petr Viktorin , Alyssa Coghlan -Status: Deferred +Status: Withdrawn Type: Standards Track Created: 05-Sep-2016 Post-History: @@ -22,16 +22,25 @@ and providing more informative error messages to users when attempts to import standard library modules fail. -PEP Deferral -============ +PEP Withdrawal +============== + +The authors have withdrawn this PEP as the core ideas have over time been implemented. +The relevant features include the :data:`sys.stdlib_module_names` +API for listing standard library modules, the +:external+py3.15:option:`--with-missing-stdlib-config` +configure option for distributors to provide custom error messages, +and improved :exc:`ModuleNotFoundError` error messages for missing +:term:`standard library` modules, for example: -The PEP authors aren't actively working on this PEP, so if improving these -error messages is an idea that you're interested in pursuing, please get in -touch! (e.g. by posting to the python-dev mailing list). +.. code-block:: pycon + + >>> import zlib + Traceback (most recent call last): + File "", line 1, in + import zlib + ModuleNotFoundError: Standard library module 'zlib' was not found -The key piece of open work is determining how to get the autoconf and Visual -Studio build processes to populate the sysconfig metadata file with the lists -of expected and optional standard library modules. Motivation From 866fad928aeb0735f6cbde7baeb319ac22abc77d Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 2 Dec 2025 16:28:23 +0000 Subject: [PATCH 2/3] Fix wording --- peps/pep-0534.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0534.rst b/peps/pep-0534.rst index b1a1fc1c1d9..a168f6e5317 100644 --- a/peps/pep-0534.rst +++ b/peps/pep-0534.rst @@ -25,8 +25,8 @@ standard library modules fail. PEP Withdrawal ============== -The authors have withdrawn this PEP as the core ideas have over time been implemented. -The relevant features include the :data:`sys.stdlib_module_names` +The authors have withdrawn this PEP as the core ideas have been implemented over +time. The relevant features include the :data:`sys.stdlib_module_names` API for listing standard library modules, the :external+py3.15:option:`--with-missing-stdlib-config` configure option for distributors to provide custom error messages, From fe011bc6307477ef59f60b8087c1cf7ba2471fe3 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 2 Dec 2025 16:28:34 +0000 Subject: [PATCH 3/3] Remove line --- peps/pep-0534.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/peps/pep-0534.rst b/peps/pep-0534.rst index a168f6e5317..59fd05db408 100644 --- a/peps/pep-0534.rst +++ b/peps/pep-0534.rst @@ -42,7 +42,6 @@ and improved :exc:`ModuleNotFoundError` error messages for missing ModuleNotFoundError: Standard library module 'zlib' was not found - Motivation ==========