Skip to content

Commit 4d690df

Browse files
Withdraw PEP 534
1 parent da0dc71 commit 4d690df

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

peps/pep-0534.rst

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title: Improved Errors for Missing Standard Library Modules
33
Author: Tomáš Orsava <tomas.n@orsava.cz>,
44
Petr Viktorin <encukou@gmail.com>,
55
Alyssa Coghlan <ncoghlan@gmail.com>
6-
Status: Deferred
6+
Status: Withdrawn
77
Type: Standards Track
88
Created: 05-Sep-2016
99
Post-History:
@@ -22,16 +22,25 @@ and providing more informative error messages to users when attempts to import
2222
standard library modules fail.
2323

2424

25-
PEP Deferral
26-
============
25+
PEP Withdrawal
26+
==============
27+
28+
The authors have withdrawn this PEP as the core ideas have over time been implemented.
29+
The relevant features include the :data:`sys.stdlib_module_names`
30+
API for listing standard library modules, the
31+
:external+py3.15:option:`--with-missing-stdlib-config`
32+
configure option for distributors to provide custom error messages,
33+
and improved :exc:`ModuleNotFoundError` error messages for missing
34+
:term:`standard library` modules, for example:
2735

28-
The PEP authors aren't actively working on this PEP, so if improving these
29-
error messages is an idea that you're interested in pursuing, please get in
30-
touch! (e.g. by posting to the python-dev mailing list).
36+
.. code-block:: pycon
37+
38+
>>> import zlib
39+
Traceback (most recent call last):
40+
File "<python-input-0>", line 1, in <module>
41+
import zlib
42+
ModuleNotFoundError: Standard library module 'zlib' was not found
3143
32-
The key piece of open work is determining how to get the autoconf and Visual
33-
Studio build processes to populate the sysconfig metadata file with the lists
34-
of expected and optional standard library modules.
3544
3645
3746
Motivation

0 commit comments

Comments
 (0)