Skip to content

Commit 4628320

Browse files
authored
gh-119003: Clarify slice assignments (#119935)
1 parent 1dadcb5 commit 4628320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ accepts integers that meet the value restriction ``0 <= x <= 255``).
12201220
Notes:
12211221

12221222
(1)
1223-
*t* must have the same length as the slice it is replacing.
1223+
If *k* is not equal to ``1``, *t* must have the same length as the slice it is replacing.
12241224

12251225
(2)
12261226
The optional argument *i* defaults to ``-1``, so that by default the last

0 commit comments

Comments
 (0)