Skip to content

Commit 2a8166c

Browse files
generatedunixname1734921407115435meta-codesync[bot]
authored andcommitted
Sync pre-release CPython main branch from GitHub (2026-07-15)
Summary: Imported python/cpython `3.16.0a0` from upstream rev [`b4662e8`](https://www.github.com/python/cpython/commit/b4662e8e3b60a264486130a171047c7381f993f0) (committed 2026-07-15 18:05:17+00:00). # Commit Info - Base: (`3.16.0a0`) - [`87411d0`](https://www.github.com/python/cpython/commit/87411d0742f070b1424c08b41cf3af49d377b215) (commit date: 2026-07-15 03:06:24+00:00) - Imported: (`3.16.0a0`) - [`b4662e8`](https://www.github.com/python/cpython/commit/b4662e8e3b60a264486130a171047c7381f993f0) (commit date: 2026-07-15 18:05:17+00:00) # Noteworthy file changes - Low-signal files (1 added) (NEWS.d, docs, .github) Complete list of added/removed files: https://www.internalfb.com/intern/everpaste/?color=0&handle=GGDVuyy9VnKACMcFAFg0s260z-txbr0LAAAz Differential Revision: D112268504 fbshipit-source-id: f0cbacb3c98dd967ca6fd29544583e6dede4725f
1 parent 157dd29 commit 2a8166c

9 files changed

Lines changed: 274 additions & 180 deletions

File tree

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