https://github.com/python/cpython/commit/2b2530540f264926b854eb58c31ffe5dfb04895a commit: 2b2530540f264926b854eb58c31ffe5dfb04895a branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: kumaraditya303 <[email protected]> date: 2024-06-23T18:04:25+05:30 summary:
[3.12] gh-119003: Clarify slice assignments (GH-119935) (#120848) gh-119003: Clarify slice assignments (GH-119935) (cherry picked from commit 462832041e342f8aaf8c88ec44f7b14c70042575) Co-authored-by: Nice Zombies <[email protected]> files: M Doc/library/stdtypes.rst diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index d11bfb803f8c56..f1f413ef366dd1 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
