Skip to content

Commit a8877f5

Browse files
committed
Merge remote-tracking branch 'origin/fix-issue-gh-113570' into fix-issue-pythongh-113570
2 parents 8badac9 + 0d7a3aa commit a8877f5

File tree

87 files changed

+1152
-757
lines changed

Some content is hidden

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

87 files changed

+1152
-757
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
if: needs.check_source.outputs.run_tests == 'true'
129129
steps:
130130
- uses: actions/checkout@v4
131-
- uses: actions/setup-python@v4
131+
- uses: actions/setup-python@v5
132132
with:
133133
python-version: '3.x'
134134
- name: Restore config.cache
@@ -187,13 +187,13 @@ jobs:
187187
if: needs.check_source.outputs.run_tests == 'true'
188188
uses: ./.github/workflows/reusable-windows.yml
189189

190-
build_windows_free_threaded:
191-
name: 'Windows (free-threaded)'
190+
build_windows_free_threading:
191+
name: 'Windows (free-threading)'
192192
needs: check_source
193193
if: needs.check_source.outputs.run_tests == 'true'
194194
uses: ./.github/workflows/reusable-windows.yml
195195
with:
196-
free-threaded: true
196+
free-threading: true
197197

198198
build_macos:
199199
name: 'macOS'
@@ -203,14 +203,14 @@ jobs:
203203
with:
204204
config_hash: ${{ needs.check_source.outputs.config_hash }}
205205

206-
build_macos_free_threaded:
207-
name: 'macOS (free-threaded)'
206+
build_macos_free_threading:
207+
name: 'macOS (free-threading)'
208208
needs: check_source
209209
if: needs.check_source.outputs.run_tests == 'true'
210210
uses: ./.github/workflows/reusable-macos.yml
211211
with:
212212
config_hash: ${{ needs.check_source.outputs.config_hash }}
213-
free-threaded: true
213+
free-threading: true
214214

215215
build_ubuntu:
216216
name: 'Ubuntu'
@@ -225,8 +225,8 @@ jobs:
225225
--with-pydebug \
226226
--with-openssl=$OPENSSL_DIR
227227
228-
build_ubuntu_free_threaded:
229-
name: 'Ubuntu (free-threaded)'
228+
build_ubuntu_free_threading:
229+
name: 'Ubuntu (free-threading)'
230230
needs: check_source
231231
if: needs.check_source.outputs.run_tests == 'true'
232232
uses: ./.github/workflows/reusable-ubuntu.yml
@@ -395,7 +395,7 @@ jobs:
395395
-x test_subprocess \
396396
-x test_signal \
397397
-x test_sysconfig
398-
- uses: actions/upload-artifact@v3
398+
- uses: actions/upload-artifact@v4
399399
if: always()
400400
with:
401401
name: hypothesis-example-db
@@ -483,14 +483,14 @@ jobs:
483483
output-sarif: true
484484
sanitizer: ${{ matrix.sanitizer }}
485485
- name: Upload crash
486-
uses: actions/upload-artifact@v3
486+
uses: actions/upload-artifact@v4
487487
if: failure() && steps.build.outcome == 'success'
488488
with:
489489
name: ${{ matrix.sanitizer }}-artifacts
490490
path: ./out/artifacts
491491
- name: Upload SARIF
492492
if: always() && steps.build.outcome == 'success'
493-
uses: github/codeql-action/upload-sarif@v2
493+
uses: github/codeql-action/upload-sarif@v3
494494
with:
495495
sarif_file: cifuzz-sarif/results.sarif
496496
checkout_path: cifuzz-sarif
@@ -504,12 +504,12 @@ jobs:
504504
- check-docs
505505
- check_generated_files
506506
- build_macos
507-
- build_macos_free_threaded
507+
- build_macos_free_threading
508508
- build_ubuntu
509-
- build_ubuntu_free_threaded
509+
- build_ubuntu_free_threading
510510
- build_ubuntu_ssltests
511511
- build_windows
512-
- build_windows_free_threaded
512+
- build_windows_free_threading
513513
- test_hypothesis
514514
- build_asan
515515
- cifuzz
@@ -537,12 +537,12 @@ jobs:
537537
&& '
538538
check_generated_files,
539539
build_macos,
540-
build_macos_free_threaded,
540+
build_macos_free_threading,
541541
build_ubuntu,
542-
build_ubuntu_free_threaded,
542+
build_ubuntu_free_threading,
543543
build_ubuntu_ssltests,
544544
build_windows,
545-
build_windows_free_threaded,
545+
build_windows_free_threading,
546546
build_asan,
547547
'
548548
|| ''

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- uses: actions/setup-python@v4
23+
- uses: actions/setup-python@v5
2424
with:
2525
python-version: "3.x"
2626
- uses: pre-commit/[email protected]

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
timeout-minutes: 10
4747
steps:
4848
- uses: actions/checkout@v4
49-
- uses: actions/setup-python@v4
49+
- uses: actions/setup-python@v5
5050
with:
5151
python-version: "3.11"
5252
cache: pip

.github/workflows/reusable-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
git fetch origin ${{ env.refspec_base }} --shallow-since="${DATE}" \
4242
--no-tags --prune --no-recurse-submodules
4343
- name: 'Set up Python'
44-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: '3'
4747
cache: 'pip'
@@ -72,7 +72,7 @@ jobs:
7272
steps:
7373
- uses: actions/checkout@v4
7474
- name: 'Set up Python'
75-
uses: actions/setup-python@v4
75+
uses: actions/setup-python@v5
7676
with:
7777
python-version: '3.11' # known to work with Sphinx 4.2
7878
cache: 'pip'

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
config_hash:
55
required: true
66
type: string
7-
free-threaded:
7+
free-threading:
88
required: false
99
type: boolean
1010
default: false
@@ -35,7 +35,7 @@ jobs:
3535
./configure \
3636
--config-cache \
3737
--with-pydebug \
38-
${{ inputs.free-threaded && '--disable-gil' || '' }} \
38+
${{ inputs.free-threading && '--disable-gil' || '' }} \
3939
--prefix=/opt/python-dev \
4040
--with-openssl="$(brew --prefix [email protected])"
4141
- name: Build CPython

.github/workflows/reusable-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
workflow_call:
33
inputs:
4-
free-threaded:
4+
free-threading:
55
required: false
66
type: boolean
77
default: false
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Build CPython
19-
run: .\PCbuild\build.bat -e -d -v -p Win32 ${{ inputs.free-threaded && '--disable-gil' || '' }}
19+
run: .\PCbuild\build.bat -e -d -v -p Win32 ${{ inputs.free-threading && '--disable-gil' || '' }}
2020
- name: Display build info
2121
run: .\python.bat -m test.pythoninfo
2222
- name: Tests
@@ -33,7 +33,7 @@ jobs:
3333
- name: Register MSVC problem matcher
3434
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
3535
- name: Build CPython
36-
run: .\PCbuild\build.bat -e -d -v -p x64 ${{ inputs.free-threaded && '--disable-gil' || '' }}
36+
run: .\PCbuild\build.bat -e -d -v -p x64 ${{ inputs.free-threading && '--disable-gil' || '' }}
3737
- name: Display build info
3838
run: .\python.bat -m test.pythoninfo
3939
- name: Tests
@@ -50,4 +50,4 @@ jobs:
5050
- name: Register MSVC problem matcher
5151
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
5252
- name: Build CPython
53-
run: .\PCbuild\build.bat -e -d -v -p arm64 ${{ inputs.free-threaded && '--disable-gil' || '' }}
53+
run: .\PCbuild\build.bat -e -d -v -p arm64 ${{ inputs.free-threading && '--disable-gil' || '' }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: "Check PRs"
19-
uses: actions/stale@v8
19+
uses: actions/stale@v9
2020
with:
2121
repo-token: ${{ secrets.GITHUB_TOKEN }}
2222
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
timeout-minutes: 10
2727
steps:
2828
- uses: actions/checkout@v4
29-
- uses: actions/setup-python@v4
29+
- uses: actions/setup-python@v5
3030
with:
3131
python-version: '3'
3232
- name: Compare checksum of bundled wheels to the ones published on PyPI

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Querying the error indicator
440440
.. c:function:: PyObject *PyErr_GetRaisedException(void)
441441
442442
Return the exception currently being raised, clearing the error indicator at
443-
the same time.
443+
the same time. Return ``NULL`` if the error indicator is not set.
444444
445445
This function is used by code that needs to catch exceptions,
446446
or code that needs to save and restore the error indicator temporarily.

Doc/library/configparser.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ converters and customize the provided ones. [1]_
208208
Fallback Values
209209
---------------
210210

211-
As with a dictionary, you can use a section's :meth:`get` method to
211+
As with a dictionary, you can use a section's :meth:`~ConfigParser.get` method to
212212
provide fallback values:
213213

214214
.. doctest::
@@ -232,7 +232,7 @@ even if we specify a fallback:
232232
>>> topsecret.get('CompressionLevel', '3')
233233
'9'
234234

235-
One more thing to be aware of is that the parser-level :meth:`get` method
235+
One more thing to be aware of is that the parser-level :meth:`~ConfigParser.get` method
236236
provides a custom, more complex interface, maintained for backwards
237237
compatibility. When using this method, a fallback value can be provided via
238238
the ``fallback`` keyword-only argument:
@@ -271,7 +271,7 @@ out. Values can also span multiple lines, as long as they are indented deeper
271271
than the first line of the value. Depending on the parser's mode, blank lines
272272
may be treated as parts of multiline values or ignored.
273273

274-
By default, a valid section name can be any string that does not contain '\\n' or ']'.
274+
By default, a valid section name can be any string that does not contain '\\n'.
275275
To change this, see :attr:`ConfigParser.SECTCRE`.
276276

277277
Configuration files may include comments, prefixed by specific
@@ -481,7 +481,7 @@ historical background and it's very likely that you will want to customize some
481481
of the features.
482482

483483
The most common way to change the way a specific config parser works is to use
484-
the :meth:`__init__` options:
484+
the :meth:`!__init__` options:
485485

486486
* *defaults*, default value: ``None``
487487

@@ -491,7 +491,7 @@ the :meth:`__init__` options:
491491
the documented default.
492492

493493
Hint: if you want to specify default values for a specific section, use
494-
:meth:`read_dict` before you read the actual file.
494+
:meth:`~ConfigParser.read_dict` before you read the actual file.
495495

496496
* *dict_type*, default value: :class:`dict`
497497

@@ -635,8 +635,8 @@ the :meth:`__init__` options:
635635
* *strict*, default value: ``True``
636636

637637
When set to ``True``, the parser will not allow for any section or option
638-
duplicates while reading from a single source (using :meth:`read_file`,
639-
:meth:`read_string` or :meth:`read_dict`). It is recommended to use strict
638+
duplicates while reading from a single source (using :meth:`~ConfigParser.read_file`,
639+
:meth:`~ConfigParser.read_string` or :meth:`~ConfigParser.read_dict`). It is recommended to use strict
640640
parsers in new applications.
641641

642642
.. versionchanged:: 3.2
@@ -697,7 +697,7 @@ the :meth:`__init__` options:
697697
desirable, users may define them in a subclass or pass a dictionary where each
698698
key is a name of the converter and each value is a callable implementing said
699699
conversion. For instance, passing ``{'decimal': decimal.Decimal}`` would add
700-
:meth:`getdecimal` on both the parser object and all section proxies. In
700+
:meth:`!getdecimal` on both the parser object and all section proxies. In
701701
other words, it will be possible to write both
702702
``parser_instance.getdecimal('section', 'key', fallback=0)`` and
703703
``parser_instance['section'].getdecimal('key', 0)``.
@@ -1062,11 +1062,11 @@ ConfigParser Objects
10621062
yielding Unicode strings (for example files opened in text mode).
10631063

10641064
Optional argument *source* specifies the name of the file being read. If
1065-
not given and *f* has a :attr:`name` attribute, that is used for
1065+
not given and *f* has a :attr:`!name` attribute, that is used for
10661066
*source*; the default is ``'<???>'``.
10671067

10681068
.. versionadded:: 3.2
1069-
Replaces :meth:`readfp`.
1069+
Replaces :meth:`!readfp`.
10701070

10711071
.. method:: read_string(string, source='<string>')
10721072

@@ -1214,7 +1214,7 @@ ConfigParser Objects
12141214

12151215
.. data:: MAX_INTERPOLATION_DEPTH
12161216

1217-
The maximum depth for recursive interpolation for :meth:`get` when the *raw*
1217+
The maximum depth for recursive interpolation for :meth:`~configparser.ConfigParser.get` when the *raw*
12181218
parameter is false. This is relevant only when the default *interpolation*
12191219
is used.
12201220

@@ -1287,13 +1287,13 @@ Exceptions
12871287

12881288
.. exception:: DuplicateSectionError
12891289

1290-
Exception raised if :meth:`add_section` is called with the name of a section
1290+
Exception raised if :meth:`~ConfigParser.add_section` is called with the name of a section
12911291
that is already present or in strict parsers when a section if found more
12921292
than once in a single input file, string or dictionary.
12931293

12941294
.. versionadded:: 3.2
12951295
Optional ``source`` and ``lineno`` attributes and arguments to
1296-
:meth:`__init__` were added.
1296+
:meth:`!__init__` were added.
12971297

12981298

12991299
.. exception:: DuplicateOptionError
@@ -1345,9 +1345,9 @@ Exceptions
13451345

13461346
Exception raised when errors occur attempting to parse a file.
13471347

1348-
.. versionchanged:: 3.12
1349-
The ``filename`` attribute and :meth:`__init__` constructor argument were
1350-
removed. They have been available using the name ``source`` since 3.2.
1348+
.. versionchanged:: 3.12
1349+
The ``filename`` attribute and :meth:`!__init__` constructor argument were
1350+
removed. They have been available using the name ``source`` since 3.2.
13511351

13521352
.. rubric:: Footnotes
13531353

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ have three read-only attributes:
742742
called.
743743

744744
:class:`partial` objects are like :class:`function` objects in that they are
745-
callable, weak referencable, and can have attributes. There are some important
745+
callable, weak referenceable, and can have attributes. There are some important
746746
differences. For instance, the :attr:`~definition.__name__` and :attr:`__doc__` attributes
747747
are not created automatically. Also, :class:`partial` objects defined in
748748
classes behave like static methods and do not transform into bound methods

Doc/library/logging.config.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ in :mod:`logging` itself) and defining handlers which are declared either in
9393

9494
:param fname: A filename, or a file-like object, or an instance derived
9595
from :class:`~configparser.RawConfigParser`. If a
96-
``RawConfigParser``-derived instance is passed, it is used as
97-
is. Otherwise, a :class:`~configparser.Configparser` is
96+
:class:`!RawConfigParser`-derived instance is passed, it is used as
97+
is. Otherwise, a :class:`~configparser.ConfigParser` is
9898
instantiated, and the configuration read by it from the
9999
object passed in ``fname``. If that has a :meth:`readline`
100100
method, it is assumed to be a file-like object and read using
@@ -103,7 +103,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
103103
:meth:`~configparser.ConfigParser.read`.
104104

105105

106-
:param defaults: Defaults to be passed to the ConfigParser can be specified
106+
:param defaults: Defaults to be passed to the :class:`!ConfigParser` can be specified
107107
in this argument.
108108

109109
:param disable_existing_loggers: If specified as ``False``, loggers which

Doc/library/os.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4986,11 +4986,11 @@ written in Python, such as a mail server's external command delivery program.
49864986

49874987
.. availability:: Unix, not Emscripten, not WASI.
49884988

4989-
.. note::
4990-
This function is not available on macOS.
4991-
49924989
.. versionadded:: 3.3
49934990

4991+
.. versionchanged:: 3.13
4992+
This function is now available on macOS as well.
4993+
49944994

49954995
.. function:: waitpid(pid, options, /)
49964996

0 commit comments

Comments
 (0)