Skip to content

Commit ec079f6

Browse files
Merge remote-tracking branch 'upstream/main' into tkinter-simpledialog
# Conflicts: # Doc/whatsnew/3.16.rst
2 parents 2a0ad97 + 868d9a8 commit ec079f6

56 files changed

Lines changed: 2699 additions & 171 deletions

File tree

Some content is hidden

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

.github/workflows/jit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ jobs:
6464
include:
6565
- target: i686-pc-windows-msvc/msvc
6666
architecture: Win32
67-
runner: windows-2025-vs2026
67+
runner: windows-2025
6868
- target: x86_64-pc-windows-msvc/msvc
6969
architecture: x64
70-
runner: windows-2025-vs2026
70+
runner: windows-2025
7171
- target: aarch64-pc-windows-msvc/msvc
7272
architecture: ARM64
7373
runner: windows-11-arm

.github/workflows/reusable-windows-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: installer for ${{ inputs.arch }}
20-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2025-vs2026' }}
20+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2025' }}
2121
timeout-minutes: 60
2222
env:
2323
ARCH: ${{ inputs.arch }}

.github/workflows/reusable-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
jobs:
2727
build:
2828
name: Build and test (${{ inputs.arch }}, ${{ inputs.interpreter }})
29-
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2025-vs2026' }}
29+
runs-on: ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-2025' }}
3030
timeout-minutes: 60
3131
env:
3232
ARCH: ${{ inputs.arch }}

Doc/deprecations/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Deprecations
22
============
33

4-
.. include:: pending-removal-in-3.16.rst
5-
64
.. include:: pending-removal-in-3.17.rst
75

86
.. include:: pending-removal-in-3.18.rst
@@ -20,8 +18,6 @@ Deprecations
2018
C API deprecations
2119
------------------
2220

23-
.. include:: c-api-pending-removal-in-3.16.rst
24-
2521
.. include:: c-api-pending-removal-in-3.18.rst
2622

2723
.. include:: c-api-pending-removal-in-3.19.rst

Doc/extending/extending.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,8 @@ calling the Python callback functions from a C callback. Other uses are also
231231
imaginable.
232232

233233
Fortunately, the Python interpreter is easily called recursively, and there is a
234-
standard interface to call a Python function. (I won't dwell on how to call the
235-
Python parser with a particular string as input --- if you're interested, have a
236-
look at the implementation of the :option:`-c` command line option in
237-
:file:`Modules/main.c` from the Python source code.)
234+
standard interface to call a Python function. (If you're interested in how to call the
235+
Python parser with a particular string as input, see :ref:`veryhigh`.)
238236

239237
Calling a Python function is easy. First, the Python program must somehow pass
240238
you the Python function object. You should provide a function (or some other
@@ -641,7 +639,7 @@ and the object is freed.
641639

642640
An alternative strategy is called :dfn:`automatic garbage collection`.
643641
(Sometimes, reference counting is also referred to as a garbage collection
644-
strategy, hence my use of "automatic" to distinguish the two.) The big
642+
strategy, hence the use of "automatic" to distinguish the two.) The big
645643
advantage of automatic garbage collection is that the user doesn't need to call
646644
:c:func:`free` explicitly. (Another claimed advantage is an improvement in speed
647645
or memory usage --- this is no hard fact however.) The disadvantage is that for

Doc/library/codecs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,14 @@ encodings.
13991399
| punycode | | Implement :rfc:`3492`. |
14001400
| | | Stateful codecs are not |
14011401
| | | supported. |
1402+
| | | |
1403+
| | | .. warning:: |
1404+
| | | |
1405+
| | | The decoding and |
1406+
| | | encoding algorithms |
1407+
| | | scale poorly, so |
1408+
| | | limit the length of |
1409+
| | | untrusted input. |
14021410
+--------------------+---------+---------------------------+
14031411
| raw_unicode_escape | | Latin-1 encoding with |
14041412
| | | :samp:`\\u{XXXX}` and |

Doc/library/runpy.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The :mod:`!runpy` module provides two functions:
106106

107107
Execute the code at the named filesystem location and return the resulting
108108
module's globals dictionary. As with a script name supplied to the CPython
109-
command line, *file_path* may refer to a Python source file, a
109+
command line, *path_name* may refer to a Python source file, a
110110
compiled bytecode file or a valid :data:`sys.path` entry containing a
111111
:mod:`__main__` module
112112
(e.g. a zipfile containing a top-level :file:`__main__.py` file).
@@ -134,20 +134,20 @@ The :mod:`!runpy` module provides two functions:
134134
``__name__`` is set to *run_name* if this optional argument is not
135135
:const:`None` and to ``'<run_path>'`` otherwise.
136136

137-
If *file_path* directly references a script file (whether as source
137+
If *path_name* directly references a script file (whether as source
138138
or as precompiled byte code), then ``__file__`` will be set to
139-
*file_path*, and ``__spec__``, ``__loader__`` and
139+
*path_name*, and ``__spec__``, ``__loader__`` and
140140
``__package__`` will all be set to :const:`None`.
141141

142-
If *file_path* is a reference to a valid :data:`sys.path` entry, then
142+
If *path_name* is a reference to a valid :data:`sys.path` entry, then
143143
``__spec__`` will be set appropriately for the imported :mod:`__main__`
144144
module (that is, ``__spec__.name`` will always be ``__main__``).
145145
``__file__``, ``__loader__`` and ``__package__`` will be
146146
:ref:`set as normal <import-mod-attrs>` based on the module spec.
147147

148148
A number of alterations are also made to the :mod:`sys` module. Firstly,
149149
:data:`sys.path` may be altered as described above. ``sys.argv[0]`` is updated
150-
with the value of *file_path* and ``sys.modules[__name__]`` is updated
150+
with the value of *path_name* and ``sys.modules[__name__]`` is updated
151151
with a temporary module object for the module being executed. All
152152
modifications to items in :mod:`sys` are reverted before the function
153153
returns.

0 commit comments

Comments
 (0)