From 64ddafce3a8e83f6256d6d378e4df2f23bb775ad Mon Sep 17 00:00:00 2001 From: Nice Zombies Date: Sun, 2 Jun 2024 07:43:11 +0200 Subject: [PATCH 1/2] Clarify slice assignments --- 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 c8acde8b57dcdb..d0b1c81c32a793 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* != 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 From c4aee1e2e5e76d34ce26d440e2e418e986c5bc0c Mon Sep 17 00:00:00 2001 From: Nice Zombies Date: Mon, 3 Jun 2024 12:35:38 +0200 Subject: [PATCH 2/2] Update Doc/library/stdtypes.rst Co-authored-by: Erlend E. Aasland --- 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 d0b1c81c32a793..34f6e44babe596 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) - If *k* != 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