From 462832041e342f8aaf8c88ec44f7b14c70042575 Mon Sep 17 00:00:00 2001 From: Nice Zombies Date: Fri, 21 Jun 2024 20:30:50 +0200 Subject: [PATCH] gh-119003: Clarify slice assignments (#119935) --- Doc/library/stdtypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index c8acde8b57d..34f6e44babe 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