Skip to content

Commit 28e4fe4

Browse files
authored
Merge branch 'main' into ww/807-features
2 parents 5911cde + ea9199f commit 28e4fe4

File tree

14 files changed

+772
-147
lines changed

14 files changed

+772
-147
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ peps/pep-0791.rst @vstinner
673673
peps/pep-0792.rst @dstufft
674674
peps/pep-0793.rst @encukou
675675
peps/pep-0794.rst @brettcannon
676+
peps/pep-0797.rst @ZeroIntensity
676677
peps/pep-0798.rst @JelleZijlstra
677678
peps/pep-0799.rst @pablogsal
678679
peps/pep-0800.rst @JelleZijlstra
@@ -694,6 +695,7 @@ peps/pep-0816.rst @brettcannon
694695
# ...
695696
peps/pep-0819.rst @emmatyping
696697
peps/pep-0820.rst @encukou
698+
peps/pep-0822.rst @methane
697699
# ...
698700
peps/pep-2026.rst @hugovk
699701
# ...

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ Shortcut redirects are also available.
2020
For example, ``https://peps.python.org/8`` redirects to the canonical link.
2121

2222

23+
API
24+
===
25+
26+
Several data files are available at https://peps.python.org/api/
27+
28+
2329
Contributing to PEPs
2430
====================
2531

pep_sphinx_extensions/pep_processor/html/pep_html_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def get_doc_context(self, docname: str, body: str, _metatags: str) -> dict:
3333
toc_tree = self.env.tocs[docname].deepcopy()
3434
if len(toc_tree) and len(toc_tree[0]) > 1:
3535
toc_tree = toc_tree[0][1] # don't include document title
36-
del toc_tree[0] # remove contents node
36+
if docname.startswith("pep-"):
37+
del toc_tree[0] # remove contents node from PEPs
3738
for node in toc_tree.findall(nodes.reference):
3839
node["refuri"] = node["anchorname"] or '#' # fix targets
3940
toc = self.render_partial(toc_tree)["fragment"]

peps/api/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,9 @@ for example:
207207
]
208208
}
209209
}
210+
211+
release-schedule.ics
212+
--------------------
213+
214+
An iCalendar file of Python release dates is available at
215+
https://peps.python.org/api/release-schedule.ics.

peps/pep-0387.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ Making Incompatible Changes
146146
Making an incompatible change is a gradual process performed over
147147
several releases:
148148

149-
1. :pep:`PEP 1: Start with an idea <1#start-with-an-idea-for-python>` discussion.
150-
If the discussion reaches consensus that acceptance is possible a PEP or
149+
1. Discuss the change.
150+
Depending on the degree of incompatibility, this could be on
151+
`Discourse <https://discuss.python.org/>`__,
152+
the `issue tracker <https://github.com/python/cpython/issues/>`__,
153+
or in an appropriate workgroup or SIG.
154+
If the discussion reaches consensus a :pep:`PEP <1>` or
151155
similar document may be written.
152156
Hopefully users of the affected API will pipe up to comment.
153157

peps/pep-0523.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ implementing their own JITs for CPython by utilizing the proposed API.
239239
Other JITs
240240
''''''''''
241241

242-
It should be mentioned that the Pyston team was consulted on an
242+
It should be mentioned that the Pyston [#pyston]_ team was consulted on an
243243
earlier version of this PEP that was more JIT-specific and they were
244244
not interested in utilizing the changes proposed because they want
245245
control over memory layout they had no interest in directly supporting
246-
CPython itself. An informal discussion with a developer on the PyPy
246+
CPython itself. An informal discussion with a developer on the PyPy [#pypy]_
247247
team led to a similar comment.
248248

249249
Numba [#numba]_, on the other hand, suggested that they would be

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 <[email protected]>,
44
Petr Viktorin <[email protected]>,
55
Alyssa Coghlan <[email protected]>
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

peps/pep-0686.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PEP: 686
22
Title: Make UTF-8 mode default
33
Author: Inada Naoki <[email protected]>
44
Discussions-To: https://discuss.python.org/t/14737
5-
Status: Accepted
5+
Status: Final
66
Type: Standards Track
77
Created: 18-Mar-2022
88
Python-Version: 3.15

peps/pep-0788.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interpreter by preventing finalization. For example:
3939
4040
// Now we can call Python code, without worrying about the thread
4141
// hanging due to finalization.
42-
if (PyRun_SimpleString("print('My hovercraft is full of eels') < 0) {
42+
if (PyRun_SimpleString("print('My hovercraft is full of eels')") < 0) {
4343
PyErr_Print();
4444
}
4545

peps/pep-0790.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ Actual:
3939
- 3.15.0 alpha 1: Tuesday, 2025-10-14
4040
- 3.15.0 alpha 2: Wednesday, 2025-11-19
4141
- 3.15.0 alpha 3: Tuesday, 2025-12-16
42+
- 3.15.0 alpha 4: Tuesday, 2026-01-13
43+
- 3.15.0 alpha 5: Wednesday, 2026-01-14
4244

4345
Expected:
4446

45-
- 3.15.0 alpha 4: Tuesday, 2026-01-13
46-
- 3.15.0 alpha 5: Tuesday, 2026-02-10
47-
- 3.15.0 alpha 6: Tuesday, 2026-03-10
48-
- 3.15.0 alpha 7: Tuesday, 2026-04-07
47+
- 3.15.0 alpha 6: Tuesday, 2026-02-10
48+
- 3.15.0 alpha 7: Tuesday, 2026-03-10
49+
- 3.15.0 alpha 8: Tuesday, 2026-04-07
4950
- 3.15.0 beta 1: Tuesday, 2026-05-05
5051
(No new features beyond this point.)
5152
- 3.15.0 beta 2: Tuesday, 2026-05-26

0 commit comments

Comments
 (0)