]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-119003: Clarify slice assignments (GH-119935) (#120847)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 23 Jun 2024 12:34:48 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Sun, 23 Jun 2024 12:34:48 +0000 (18:04 +0530)
gh-119003: Clarify slice assignments (GH-119935)
(cherry picked from commit 462832041e342f8aaf8c88ec44f7b14c70042575)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Doc/library/stdtypes.rst

index ca4c949aafced015226a823e656bb2ea1160db79..79687b94f0a8e43365491678ff2c158d4c7f46bc 100644 (file)
@@ -1220,7 +1220,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
 Notes:
 
 (1)
-   *t* must have the same length as the slice it is replacing.
+   If *k* is not equal to ``1``, *t* must have the same length as the slice it is replacing.
 
 (2)
    The optional argument *i* defaults to ``-1``, so that by default the last