Skip to content

Commit d2b6941

Browse files
nineteendomrahtz
authored andcommitted
pythongh-119003: Clarify slice assignments (python#119935)
1 parent 597d99d commit d2b6941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
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)