Skip to content

Commit e462332

Browse files
Merge branch 'main' into tkinter-photoimage-tk9-options
2 parents 6c692ff + 5049eb1 commit e462332

38 files changed

Lines changed: 2146 additions & 92 deletions

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/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)