Skip to content

Commit 55fbb13

Browse files
Merge branch 'main' into rpow
2 parents 56daac8 + 10b3205 commit 55fbb13

File tree

103 files changed

+4214
-3437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+4214
-3437
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ jobs:
245245
- true
246246
os:
247247
- ubuntu-24.04
248-
- ubuntu-22.04-arm
248+
- ubuntu-24.04-arm
249249
exclude:
250250
# Do not test BOLT with free-threading, to conserve resources
251251
- bolt: true
252252
free-threading: true
253253
# BOLT currently crashes during instrumentation on aarch64
254-
- os: ubuntu-22.04-arm
254+
- os: ubuntu-24.04-arm
255255
bolt: true
256256
uses: ./.github/workflows/reusable-ubuntu.yml
257257
with:

.github/workflows/jit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
runner: ubuntu-24.04
8787
- target: aarch64-unknown-linux-gnu/gcc
8888
architecture: aarch64
89-
runner: ubuntu-22.04-arm
89+
runner: ubuntu-24.04-arm
9090
steps:
9191
- uses: actions/checkout@v4
9292
with:

.github/workflows/tail-call.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
runner: ubuntu-24.04
6666
- target: aarch64-unknown-linux-gnu/gcc
6767
architecture: aarch64
68-
runner: ubuntu-22.04-arm
68+
runner: ubuntu-24.04-arm
6969
- target: free-threading
7070
architecture: x86_64
7171
runner: ubuntu-24.04

Doc/c-api/arg.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@ Building values
645645
``n`` (:class:`int`) [:c:type:`Py_ssize_t`]
646646
Convert a C :c:type:`Py_ssize_t` to a Python integer.
647647
648+
``p`` (:class:`bool`) [int]
649+
Convert a C :c:expr:`int` to a Python :class:`bool` object.
650+
.. versionadded:: 3.14
651+
648652
``c`` (:class:`bytes` of length 1) [char]
649653
Convert a C :c:expr:`int` representing a byte to a Python :class:`bytes` object of
650654
length 1.

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -921,11 +921,7 @@ because the :ref:`call protocol <call>` takes care of recursion handling.
921921
922922
Marks a point where a recursive C-level call is about to be performed.
923923
924-
If :c:macro:`!USE_STACKCHECK` is defined, this function checks if the OS
925-
stack overflowed using :c:func:`PyOS_CheckStack`. If this is the case, it
926-
sets a :exc:`MemoryError` and returns a nonzero value.
927-
928-
The function then checks if the recursion limit is reached. If this is the
924+
The function then checks if the stack limit is reached. If this is the
929925
case, a :exc:`RecursionError` is set and a nonzero value is returned.
930926
Otherwise, zero is returned.
931927

Doc/library/dataclasses.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,11 @@ Module contents
270270
string returned by the generated :meth:`~object.__repr__` method.
271271

272272
- *hash*: This can be a bool or ``None``. If true, this field is
273-
included in the generated :meth:`~object.__hash__` method. If ``None`` (the
274-
default), use the value of *compare*: this would normally be
275-
the expected behavior. A field should be considered in the hash
276-
if it's used for comparisons. Setting this value to anything
273+
included in the generated :meth:`~object.__hash__` method. If false,
274+
this field is excluded from the generated :meth:`~object.__hash__`.
275+
If ``None`` (the default), use the value of *compare*: this would
276+
normally be the expected behavior, since a field should be included
277+
in the hash if it's used for comparisons. Setting this value to anything
277278
other than ``None`` is discouraged.
278279

279280
One possible reason to set ``hash=False`` but ``compare=True``

Doc/library/dis.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ The following options are accepted:
9797

9898
.. program:: dis
9999

100-
.. cmdoption:: -h, --help
100+
.. option:: -h, --help
101101

102102
Display usage and exit.
103103

104-
.. cmdoption:: -C, --show-caches
104+
.. option:: -C, --show-caches
105105

106106
Show inline caches.
107107

108-
.. cmdoption:: -O, --show-offsets
108+
.. option:: -O, --show-offsets
109109

110110
Show offsets of instructions.
111111

112-
.. cmdoption:: -P, --show-positions
112+
.. option:: -P, --show-positions
113113

114114
Show positions of instructions in the source code.
115115

116-
.. cmdoption:: -S, --specialized
116+
.. option:: -S, --specialized
117117

118118
Show specialized bytecode.
119119

Doc/library/ensurepip.rst

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ when creating a virtual environment) or after explicitly uninstalling
4343
Command line interface
4444
----------------------
4545

46+
.. program:: ensurepip
47+
4648
The command line interface is invoked using the interpreter's ``-m`` switch.
4749

4850
The simplest possible invocation is::
@@ -61,26 +63,34 @@ By default, ``pip`` is installed into the current virtual environment
6163
active virtual environment). The installation location can be controlled
6264
through two additional command line options:
6365

64-
* :samp:`--root {dir}`: Installs ``pip`` relative to the given root directory
65-
rather than the root of the currently active virtual environment (if any)
66-
or the default root for the current Python installation.
67-
* ``--user``: Installs ``pip`` into the user site packages directory rather
68-
than globally for the current Python installation (this option is not
69-
permitted inside an active virtual environment).
66+
.. option:: --root <dir>
67+
68+
Installs ``pip`` relative to the given root directory rather than the root
69+
of the currently active virtual environment (if any) or the default root
70+
for the current Python installation.
71+
72+
.. option:: --user
73+
74+
Installs ``pip`` into the user site packages directory rather than globally
75+
for the current Python installation (this option is not permitted inside an
76+
active virtual environment).
7077

7178
By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where
7279
X.Y stands for the version of Python used to invoke ``ensurepip``). The
7380
scripts installed can be controlled through two additional command line
7481
options:
7582

76-
* ``--altinstall``: if an alternate installation is requested, the ``pipX``
77-
script will *not* be installed.
83+
.. option:: --altinstall
7884

79-
* ``--default-pip``: if a "default pip" installation is requested, the
80-
``pip`` script will be installed in addition to the two regular scripts.
85+
If an alternate installation is requested, the ``pipX`` script will *not* be
86+
installed.
8187

82-
Providing both of the script selection options will trigger an exception.
88+
.. option:: --default-pip
89+
90+
If a "default pip" installation is requested, the ``pip`` script will be
91+
installed in addition to the two regular scripts.
8392

93+
Providing both of the script selection options will trigger an exception.
8494

8595
Module API
8696
----------
@@ -136,3 +146,4 @@ Module API
136146
``pip``, but other software should not assume those dependencies will
137147
always be present by default (as the dependencies may be removed in a
138148
future version of ``pip``).
149+

Doc/library/traceback.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ Module-Level Functions
115115

116116
.. function:: print_exc(limit=None, file=None, chain=True)
117117

118-
This is a shorthand for ``print_exception(sys.exception(), limit, file,
119-
chain)``.
118+
This is a shorthand for ``print_exception(sys.exception(), limit=limit, file=file,
119+
chain=chain)``.
120120

121121

122122
.. function:: print_last(limit=None, file=None, chain=True)
123123

124-
This is a shorthand for ``print_exception(sys.last_exc, limit, file,
125-
chain)``. In general it will work only after an exception has reached
124+
This is a shorthand for ``print_exception(sys.last_exc, limit=limit, file=file,
125+
chain=chain)``. In general it will work only after an exception has reached
126126
an interactive prompt (see :data:`sys.last_exc`).
127127

128128

Doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# won't suddenly cause build failures. Updating the version is fine as long
88
# as no warnings are raised by doing so.
99
# Keep this version in sync with ``Doc/conf.py``.
10-
sphinx~=8.1.0
10+
sphinx~=8.2.0
1111

1212
blurb
1313

0 commit comments

Comments
 (0)