Skip to content

Commit 2a45a44

Browse files
authored
Merge branch 'main' into fix-issue-128942
2 parents 98f1433 + e7f00cd commit 2a45a44

Some content is hidden

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

46 files changed

+717
-386
lines changed

Android/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ stderr. Add the `-v` option to also show Gradle output, and non-Python logcat
119119
messages.
120120

121121
Any other arguments on the `android.py test` command line will be passed through
122-
to `python -m test` use `--` to separate them from android.py's own options.
122+
to `python -m test` use `--` to separate them from android.py's own options.
123123
See the [Python Developer's
124124
Guide](https://devguide.python.org/testing/run-write-tests/) for common options
125-
 most of them will work on Android, except for those that involve subprocesses,
125+
most of them will work on Android, except for those that involve subprocesses,
126126
such as `-j`.
127127

128128
Every time you run `android.py test`, changes in pure-Python files in the

Doc/c-api/function.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,13 @@ There are a few functions specific to Python functions.
145145
146146
.. c:type:: PyFunction_WatchEvent
147147
148-
Enumeration of possible function watcher events:
149-
- ``PyFunction_EVENT_CREATE``
150-
- ``PyFunction_EVENT_DESTROY``
151-
- ``PyFunction_EVENT_MODIFY_CODE``
152-
- ``PyFunction_EVENT_MODIFY_DEFAULTS``
153-
- ``PyFunction_EVENT_MODIFY_KWDEFAULTS``
148+
Enumeration of possible function watcher events:
149+
150+
- ``PyFunction_EVENT_CREATE``
151+
- ``PyFunction_EVENT_DESTROY``
152+
- ``PyFunction_EVENT_MODIFY_CODE``
153+
- ``PyFunction_EVENT_MODIFY_DEFAULTS``
154+
- ``PyFunction_EVENT_MODIFY_KWDEFAULTS``
154155
155156
.. versionadded:: 3.12
156157

Doc/library/itertools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Examples Results
7979
``product('ABCD', repeat=2)`` ``AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD``
8080
``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA CB CD DA DB DC``
8181
``combinations('ABCD', 2)`` ``AB AC AD BC BD CD``
82-
``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
82+
``combinations_with_replacement('ABCD', 2)`` ``AA AB AC AD BB BC BD CC CD DD``
8383
============================================== =============================================================
8484

8585

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ Connection objects
11481148
the *remaining* number of pages still to be copied,
11491149
and the *total* number of pages.
11501150
Defaults to ``None``.
1151-
:type progress: :term:`callback` | None
1151+
:type progress: :term:`callback` | None
11521152

11531153
:param str name:
11541154
The name of the database to back up.

Doc/whatsnew/3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
when researching a change.
4848
4949
This article explains the new features in Python 3.1, compared to 3.0.
50-
Python 3.1 was released on June 27, 2009.
50+
Python 3.1 was released on June 27, 2009.
5151

5252

5353
PEP 372: Ordered Dictionaries

Doc/whatsnew/3.14.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ configuration mechanisms).
224224
A new type of interpreter
225225
-------------------------
226226

227-
A new type of interpreter based on tail calls has been added to CPython.
227+
A new type of interpreter has been added to CPython.
228+
It uses tail calls between small C functions that implement individual
229+
Python opcodes, rather than one large C case statement.
228230
For certain newer compilers, this interpreter provides
229231
significantly better performance. Preliminary numbers on our machines suggest
230232
anywhere from -3% to 30% faster Python code, and a geometric mean of 9-15%
@@ -344,6 +346,10 @@ ast
344346
* The ``repr()`` output for AST nodes now includes more information.
345347
(Contributed by Tomas R in :gh:`116022`.)
346348

349+
* :func:`ast.parse`, when called with an AST as input, now always verifies
350+
that the root node type is appropriate.
351+
(Contributed by Irit Katriel in :gh:`130139`.)
352+
347353

348354
calendar
349355
--------

Doc/whatsnew/3.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
when researching a change.
4646
4747
This article explains the new features in Python 3.5, compared to 3.4.
48-
Python 3.5 was released on September 13, 2015.  See the
48+
Python 3.5 was released on September 13, 2015. See the
4949
`changelog <https://docs.python.org/3.5/whatsnew/changelog.html>`_ for a full
5050
list of changes.
5151

Doc/whatsnew/3.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
when researching a change.
4646
4747
This article explains the new features in Python 3.6, compared to 3.5.
48-
Python 3.6 was released on December 23, 2016.  See the
48+
Python 3.6 was released on December 23, 2016. See the
4949
`changelog <https://docs.python.org/3.6/whatsnew/changelog.html>`_ for a full
5050
list of changes.
5151

Include/internal/pycore_ast.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

InternalDocs/interpreter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ snippet decode a complete instruction:
105105
For various reasons we'll get to later (mostly efficiency, given that `EXTENDED_ARG`
106106
is rare) the actual code is different.
107107

108-
## Jumps
108+
## Jumps
109109

110110
Note that when the `switch` statement is reached, `next_instr` (the "instruction offset")
111111
already points to the next instruction.

0 commit comments

Comments
 (0)