Skip to content

Commit 6df4ae1

Browse files
generatedunixname1734921407115435meta-codesync[bot]
authored andcommitted
Sync pre-release CPython 3.15 branch from GitHub (2026-07-15)
Summary: Imported python/cpython `3.15.0b3+dev` from upstream rev [`fd4c7a8`](https://www.github.com/python/cpython/commit/fd4c7a8d4d46c9b7db920a6b766d367ab22e6a1c) (committed 2026-07-15 18:15:24+00:00). # Commit Info - Base: (`3.15.0b3+dev`) - [`accfc34`](https://www.github.com/python/cpython/commit/accfc342e792d461eecf6bcbdd242f126822f325) (commit date: 2026-07-15 03:37:16+00:00) - Imported: (`3.15.0b3+dev`) - [`fd4c7a8`](https://www.github.com/python/cpython/commit/fd4c7a8d4d46c9b7db920a6b766d367ab22e6a1c) (commit date: 2026-07-15 18:15:24+00:00) # Noteworthy file changes - Test files (2 added) - Low-signal files (3 added) (NEWS.d, docs, .github) Complete list of added/removed files: https://www.internalfb.com/intern/everpaste/?color=0&handle=GOxmXyM1WLxq4yoDAOMZpIIvNw0Fbr0LAAAz Differential Revision: D112268579 fbshipit-source-id: 89259863e9f676ea44781004760957b20142122a
1 parent eeaad7b commit 6df4ae1

18 files changed

Lines changed: 543 additions & 343 deletions

Doc/library/stdtypes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,11 @@ category.
17201720
| | :meth:`str.strip` | :meth:`bytes.strip` |
17211721
| +--------------------+----------------------+----------------------+----------------------------+
17221722
| | :meth:`str.lstrip` | :meth:`str.rstrip` | :meth:`bytes.lstrip` | :meth:`bytes.rstrip` |
1723-
+--------------------------+--------------------+----------------------+----------------------+----------------------------+
1723+
| +--------------------+----------------------+----------------------+----------------------------+
1724+
| | :meth:`str.removeprefix` | :meth:`bytes.removeprefix` |
1725+
| +-------------------------------------------+---------------------------------------------------+
1726+
| | :meth:`str.removesuffix` | :meth:`bytes.removesuffix` |
1727+
+--------------------------+-------------------------------------------+---------------------------------------------------+
17241728
| Translation and Encoding | :meth:`str.translate` | :meth:`bytes.translate` |
17251729
| +-------------------------------------------+---------------------------------------------------+
17261730
| | :meth:`str.maketrans` | :meth:`bytes.maketrans` |

Doc/library/struct.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The module defines the following exception and functions:
6868
Pack the values *v1*, *v2*, ... according to the format string *format* and
6969
write the packed bytes into the writable buffer *buffer* starting at
7070
position *offset*. Note that *offset* is a required argument.
71+
A negative *offset* counts from the end of *buffer*.
7172

7273

7374
.. function:: unpack(format, buffer)
@@ -84,6 +85,7 @@ The module defines the following exception and functions:
8485
string *format*. The result is a tuple even if it contains exactly one
8586
item. The buffer's size in bytes, starting at position *offset*, must be at
8687
least the size required by the format, as reflected by :func:`calcsize`.
88+
A negative *offset* counts from the end of *buffer*.
8789

8890

8991
.. function:: iter_unpack(format, buffer)

Doc/library/tkinter.dnd.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@ a single application, within the same window or between windows. To enable an
1616
object to be dragged, you must create an event binding for it that starts the
1717
drag-and-drop process. Typically, you bind a ButtonPress event to a callback
1818
function that you write (see :ref:`Bindings-and-Events`). The function should
19-
call :func:`dnd_start`, where 'source' is the object to be dragged, and 'event'
19+
call :func:`dnd_start`, where *source* is the object to be dragged, and *event*
2020
is the event that invoked the call (the argument to your callback function).
2121

2222
Selection of a target object occurs as follows:
2323

24-
#. Top-down search of area under mouse for target widget
24+
#. Top-down search of the area under the mouse for a target widget:
2525

26-
* Target widget should have a callable *dnd_accept* attribute
27-
* If *dnd_accept* is not present or returns ``None``, search moves to parent widget
28-
* If no target widget is found, then the target object is ``None``
26+
* the target widget should have a callable *dnd_accept* attribute;
27+
* if *dnd_accept* is not present or returns ``None``,
28+
the search moves to the parent widget;
29+
* if no target widget is found, the target object is ``None``.
2930

30-
2. Call to *<old_target>.dnd_leave(source, event)*
31-
#. Call to *<new_target>.dnd_enter(source, event)*
32-
#. Call to *<target>.dnd_commit(source, event)* to notify of drop
33-
#. Call to *<source>.dnd_end(target, event)* to signal end of drag-and-drop
31+
#. Call to ``<old_target>.dnd_leave(source, event)``.
32+
#. Call to ``<new_target>.dnd_enter(source, event)``.
33+
#. Call to ``<target>.dnd_commit(source, event)`` to notify of the drop.
34+
#. Call to ``<source>.dnd_end(target, event)`` to signal the end of drag-and-drop.
3435

3536

3637
.. class:: DndHandler(source, event)

0 commit comments

Comments
 (0)