]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119003: Clarify slice assignments (#119935)
authorNice Zombies <nineteendo19d0@gmail.com>
Fri, 21 Jun 2024 18:30:50 +0000 (20:30 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jun 2024 18:30:50 +0000 (11:30 -0700)
Doc/library/stdtypes.rst

index c8acde8b57dcdb8ab2dda45ed6923fc4e6c49480..34f6e44babe596debd0f13a9bf5fcbc7ca456990 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