summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-23 12:34:48 (GMT)
committerGitHub <noreply@github.com>2024-06-23 12:34:48 (GMT)
commitbf7aac3d25dc396128d56b699ca269c89975e41f (patch)
tree8b9be45a2b7ec9c455c3fa1d09c133aebb29710c
parent41b2d199122b22fc1578ce73baf7537c8ed45e84 (diff)
downloadcpython-bf7aac3d25dc396128d56b699ca269c89975e41f.zip
cpython-bf7aac3d25dc396128d56b699ca269c89975e41f.tar.gz
cpython-bf7aac3d25dc396128d56b699ca269c89975e41f.tar.bz2
[3.13] gh-119003: Clarify slice assignments (GH-119935) (#120847)
gh-119003: Clarify slice assignments (GH-119935) (cherry picked from commit 462832041e342f8aaf8c88ec44f7b14c70042575) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
-rw-r--r--Doc/library/stdtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index ca4c949..79687b9 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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