Skip to content

Commit c9a6f28

Browse files
PEP 534: Mark as Withdrawn (#4723)
The key aspects were implemented through the regular feature review process, so the PEP is redundant now.
1 parent e57d6fa commit c9a6f28

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

peps/pep-0534.rst

Lines changed: 17 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,24 @@ 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 been implemented over
29+
time. 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
3137
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.
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
3543
3644
3745
Motivation

0 commit comments

Comments
 (0)