Skip to content

Commit 2004934

Browse files
authored
Merge branch 'main' into issue-132558-improve-documentation
2 parents 2434cd4 + 9084b15 commit 2004934

33 files changed

+278
-75
lines changed

.github/workflows/jit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- '**jit**'
66
- 'Python/bytecodes.c'
77
- 'Python/optimizer*.c'
8+
- 'Python/executor_cases.c.h'
9+
- 'Python/optimizer_cases.c.h'
810
- '!Python/perf_jit_trampoline.c'
911
- '!**/*.md'
1012
- '!**/*.ini'
@@ -13,6 +15,8 @@ on:
1315
- '**jit**'
1416
- 'Python/bytecodes.c'
1517
- 'Python/optimizer*.c'
18+
- 'Python/executor_cases.c.h'
19+
- 'Python/optimizer_cases.c.h'
1620
- '!Python/perf_jit_trampoline.c'
1721
- '!**/*.md'
1822
- '!**/*.ini'

Doc/deprecations/c-api-pending-removal-in-3.15.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Pending removal in Python 3.15
22
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33

4-
* The bundled copy of ``libmpdecimal``.
54
* The :c:func:`!PyImport_ImportModuleNoBlock`:
65
Use :c:func:`PyImport_ImportModule` instead.
76
* :c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Pending removal in Python 3.16
2+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3+
4+
* The bundled copy of ``libmpdec``.

Doc/howto/functional.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ flow inside a program. The book uses Scheme for its examples, but many of the
12171217
design approaches described in these chapters are applicable to functional-style
12181218
Python code.
12191219

1220-
https://www.defmacro.org/ramblings/fp.html: A general introduction to functional
1220+
https://defmacro.org/2006/06/19/fp.html: A general introduction to functional
12211221
programming that uses Java examples and has a lengthy historical introduction.
12221222

12231223
https://en.wikipedia.org/wiki/Functional_programming: General Wikipedia entry

Doc/howto/isolating-extensions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,7 @@ Open Issues
626626

627627
Several issues around per-module state and heap types are still open.
628628

629-
Discussions about improving the situation are best held on the `capi-sig
630-
mailing list <https://mail.python.org/mailman3/lists/capi-sig.python.org/>`__.
629+
Discussions about improving the situation are best held on the `discuss forum under c-api tag <https://discuss.python.org/c/core-dev/c-api/30>`__.
631630

632631

633632
Per-Class Scope

Doc/installing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ switch::
188188
Once the Development & Deployment part of PPUG is fleshed out, some of
189189
those sections should be linked from new questions here (most notably,
190190
we should have a question about avoiding depending on PyPI that links to
191-
https://packaging.python.org/en/latest/mirrors/)
191+
https://packaging.python.org/en/latest/guides/index-mirrors-and-caches/)
192192
193193
194194
Common installation issues

Doc/library/unittest.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ Test cases
11311131
.. versionchanged:: 3.3
11321132
Added the *msg* keyword argument when used as a context manager.
11331133

1134-
.. method:: assertLogs(logger=None, level=None)
1134+
.. method:: assertLogs(logger=None, level=None, formatter=None)
11351135

11361136
A context manager to test that at least one message is logged on
11371137
the *logger* or one of its children, with at least the given
@@ -1146,6 +1146,10 @@ Test cases
11461146
its string equivalent (for example either ``"ERROR"`` or
11471147
:const:`logging.ERROR`). The default is :const:`logging.INFO`.
11481148

1149+
If given, *formatter* should be a :class:`logging.Formatter` object.
1150+
The default is a formatter with format string
1151+
``"%(levelname)s:%(name)s:%(message)s"``
1152+
11491153
The test passes if at least one message emitted inside the ``with``
11501154
block matches the *logger* and *level* conditions, otherwise it fails.
11511155

@@ -1173,6 +1177,9 @@ Test cases
11731177

11741178
.. versionadded:: 3.4
11751179

1180+
.. versionchanged:: next
1181+
Now accepts a *formatter* to control how messages are formatted.
1182+
11761183
.. method:: assertNoLogs(logger=None, level=None)
11771184

11781185
A context manager to test that no messages are logged on

Doc/whatsnew/3.12.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,8 @@ Deprecated
22332233

22342234
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
22352235

2236+
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
2237+
22362238
.. include:: ../deprecations/c-api-pending-removal-in-future.rst
22372239

22382240
Removed

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,8 @@ Deprecated C APIs
25462546

25472547
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
25482548

2549+
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
2550+
25492551
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
25502552

25512553
.. include:: ../deprecations/c-api-pending-removal-in-future.rst
@@ -2592,7 +2594,7 @@ Build Changes
25922594

25932595
* The :file:`configure` option :option:`--with-system-libmpdec`
25942596
now defaults to ``yes``.
2595-
The bundled copy of ``libmpdecimal`` will be removed in Python 3.15.
2597+
The bundled copy of ``libmpdec`` will be removed in Python 3.16.
25962598

25972599
* Python built with :file:`configure` :option:`--with-trace-refs`
25982600
(tracing references) is now ABI compatible with the Python release build

Doc/whatsnew/3.14.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,6 +3053,8 @@ Deprecated
30533053

30543054
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
30553055

3056+
.. include:: ../deprecations/c-api-pending-removal-in-3.16.rst
3057+
30563058
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
30573059

30583060
.. include:: ../deprecations/c-api-pending-removal-in-future.rst

0 commit comments

Comments
 (0)