Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 663ba31

Browse files
committed
Catch up with main
2 parents 6643773 + 1e610fb commit 663ba31

409 files changed

Lines changed: 5934 additions & 2383 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/build_msi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
strategy:
3333
matrix:
3434
type: [x86, x64, arm64]
35+
env:
36+
IncludeFreethreaded: true
3537
steps:
3638
- uses: actions/checkout@v4
3739
- name: Build CPython installer

.github/workflows/reusable-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Display build info
2121
run: .\python.bat -m test.pythoninfo
2222
- name: Tests
23-
run: .\PCbuild\rt.bat -p Win32 -d -q --fast-ci
23+
run: .\PCbuild\rt.bat -p Win32 -d -q --fast-ci ${{ inputs.free-threading && '--disable-gil' || '' }}
2424

2525
build_win_amd64:
2626
name: 'build and test (x64)'
@@ -37,7 +37,7 @@ jobs:
3737
- name: Display build info
3838
run: .\python.bat -m test.pythoninfo
3939
- name: Tests
40-
run: .\PCbuild\rt.bat -p x64 -d -q --fast-ci
40+
run: .\PCbuild\rt.bat -p x64 -d -q --fast-ci ${{ inputs.free-threading && '--disable-gil' || '' }}
4141

4242
build_win_arm64:
4343
name: 'build (arm64)'

Doc/c-api/stable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CPython's Application Binary Interface (ABI) is forward- and
1616
backwards-compatible across a minor release (if these are compiled the same
1717
way; see :ref:`stable-abi-platform` below).
1818
So, code compiled for Python 3.10.0 will work on 3.10.8 and vice versa,
19-
but will need to be compiled separately for 3.9.x and 3.10.x.
19+
but will need to be compiled separately for 3.9.x and 3.11.x.
2020

2121
There are two tiers of C API with different stability expectations:
2222

Doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
# Minimum version of sphinx required
7575
needs_sphinx = '4.2'
7676

77+
# Create table of contents entries for domain objects (e.g. functions, classes,
78+
# attributes, etc.). Default is True.
79+
toc_object_entries = False
80+
7781
# Ignore any .rst files in the includes/ directory;
7882
# they're embedded in pages but not rendered individually.
7983
# Ignore any .rst files in the venv/ directory.

Doc/library/concurrent.futures.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ Executor Objects
3939
future = executor.submit(pow, 323, 1235)
4040
print(future.result())
4141

42-
.. method:: map(func, *iterables, timeout=None, chunksize=1)
42+
.. method:: map(fn, *iterables, timeout=None, chunksize=1)
4343

44-
Similar to :func:`map(func, *iterables) <map>` except:
44+
Similar to :func:`map(fn, *iterables) <map>` except:
4545

4646
* the *iterables* are collected immediately rather than lazily;
4747

48-
* *func* is executed asynchronously and several calls to
49-
*func* may be made concurrently.
48+
* *fn* is executed asynchronously and several calls to
49+
*fn* may be made concurrently.
5050

5151
The returned iterator raises a :exc:`TimeoutError`
5252
if :meth:`~iterator.__next__` is called and the result isn't available
5353
after *timeout* seconds from the original call to :meth:`Executor.map`.
5454
*timeout* can be an int or a float. If *timeout* is not specified or
5555
``None``, there is no limit to the wait time.
5656

57-
If a *func* call raises an exception, then that exception will be
57+
If a *fn* call raises an exception, then that exception will be
5858
raised when its value is retrieved from the iterator.
5959

6060
When using :class:`ProcessPoolExecutor`, this method chops *iterables*

Doc/library/dataclasses.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,10 @@ class :meth:`~object.__init__` methods. If the base class has an :meth:`~object.
536536
that has to be called, it is common to call this method in a
537537
:meth:`__post_init__` method::
538538

539-
@dataclass
540539
class Rectangle:
541-
height: float
542-
width: float
540+
def __init__(self, height, width):
541+
self.height = height
542+
self.width = width
543543

544544
@dataclass
545545
class Square(Rectangle):

Doc/library/doctest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ That's all you need to know to start making productive use of :mod:`doctest`!
134134
Jump in. The following sections provide full details. Note that there are many
135135
examples of doctests in the standard Python test suite and libraries.
136136
Especially useful examples can be found in the standard test file
137-
:file:`Lib/test/test_doctest.py`.
137+
:file:`Lib/test/test_doctest/test_doctest.py`.
138138

139139

140140
.. _doctest-simple-testmod:

Doc/library/email.message.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ over the object tree.
4040
The :class:`EmailMessage` dictionary-like interface is indexed by the header
4141
names, which must be ASCII values. The values of the dictionary are strings
4242
with some extra methods. Headers are stored and returned in case-preserving
43-
form, but field names are matched case-insensitively. Unlike a real dict,
44-
there is an ordering to the keys, and there can be duplicate keys. Additional
45-
methods are provided for working with headers that have duplicate keys.
43+
form, but field names are matched case-insensitively. The keys are ordered,
44+
but unlike a real dict, there can be duplicates. Addtional methods are
45+
provided for working with headers that have duplicate keys.
4646

4747
The *payload* is either a string or bytes object, in the case of simple message
4848
objects, or a list of :class:`EmailMessage` objects, for MIME container

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ Utilities and Decorators
838838

839839
* ``FIRST = auto()`` will work (auto() is replaced with ``1``);
840840
* ``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` is
841-
used to create the ``SECOND`` enum member;
841+
used to create the ``SECOND`` enum member;
842842
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
843843
create the ``THREE`` enum member)
844844

Doc/library/fnmatch.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Also note that :func:`functools.lru_cache` with the *maxsize* of 32768 is used t
5050
cache the compiled regex patterns in the following functions: :func:`fnmatch`,
5151
:func:`fnmatchcase`, :func:`.filter`.
5252

53-
.. function:: fnmatch(filename, pattern)
53+
.. function:: fnmatch(name, pat)
5454

55-
Test whether the *filename* string matches the *pattern* string, returning
56-
:const:`True` or :const:`False`. Both parameters are case-normalized
55+
Test whether the filename string *name* matches the pattern string *pat*,
56+
returning ``True`` or ``False``. Both parameters are case-normalized
5757
using :func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a
5858
case-sensitive comparison, regardless of whether that's standard for the
5959
operating system.
@@ -69,22 +69,24 @@ cache the compiled regex patterns in the following functions: :func:`fnmatch`,
6969
print(file)
7070

7171

72-
.. function:: fnmatchcase(filename, pattern)
72+
.. function:: fnmatchcase(name, pat)
7373

74-
Test whether *filename* matches *pattern*, returning :const:`True` or
75-
:const:`False`; the comparison is case-sensitive and does not apply
76-
:func:`os.path.normcase`.
74+
Test whether the filename string *name* matches the pattern string *pat*,
75+
returning ``True`` or ``False``;
76+
the comparison is case-sensitive and does not apply :func:`os.path.normcase`.
7777

7878

79-
.. function:: filter(names, pattern)
79+
.. function:: filter(names, pat)
8080

81-
Construct a list from those elements of the iterable *names* that match *pattern*. It is the same as
82-
``[n for n in names if fnmatch(n, pattern)]``, but implemented more efficiently.
81+
Construct a list from those elements of the :term:`iterable` *names*
82+
that match pattern *pat*.
83+
It is the same as ``[n for n in names if fnmatch(n, pat)]``,
84+
but implemented more efficiently.
8385

8486

85-
.. function:: translate(pattern)
87+
.. function:: translate(pat)
8688

87-
Return the shell-style *pattern* converted to a regular expression for
89+
Return the shell-style pattern *pat* converted to a regular expression for
8890
using with :func:`re.match`.
8991

9092
Example:

0 commit comments

Comments
 (0)