@@ -3,7 +3,7 @@ Title: Improved Errors for Missing Standard Library Modules
33Author: Tomáš Orsava <tomas.n@orsava.cz>,
44 Petr Viktorin <encukou@gmail.com>,
55 Alyssa Coghlan <ncoghlan@gmail.com>
6- Status: Deferred
6+ Status: Withdrawn
77Type: Standards Track
88Created: 05-Sep-2016
99Post-History:
@@ -22,16 +22,25 @@ and providing more informative error messages to users when attempts to import
2222standard 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