From: Nice Zombies Date: Fri, 21 Jun 2024 18:30:50 +0000 (+0200) Subject: gh-119003: Clarify slice assignments (#119935) X-Git-Tag: v3.14.0a1~1376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=462832041e342f8aaf8c88ec44f7b14c70042575;p=thirdparty%2FPython%2Fcpython.git gh-119003: Clarify slice assignments (#119935) --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index c8acde8b57dc..34f6e44babe5 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