This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sjt
Recipients akira, docs@python, josh.r, sjt
Date 2017-04-22.18:04:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492884298.9.0.641504063815.issue29352@psf.upfronthosting.co.za>
In-reply-to
Content
I prefer Josh's wording.  The important point to me is that

>>> [1, 2][2:0] = "AB"
[1, 2, "A", "B"]

not an error or ["B", "A"] == [1, 2][2:0:-1].  I think too much talk about the endpoints obscures this important fact.  (I think I'd like it to be an error, since the interpretation of s[2:0] = t could reasonably be any of s[0:0] = t, s[1:1] = t, or s[2:2] = t, but I haven't thought carefully enough yet, and "backward compatibility".)

Note: Josh's wording is already used in 3.7 (https://docs.python.org/dev/library/stdtypes.html#common-sequence-operations, as of the timestamp of this message).  I didn't check if it's been backported.
History
Date User Action Args
2017-04-22 18:04:58sjtsetrecipients: + sjt, docs@python, akira, josh.r
2017-04-22 18:04:58sjtsetmessageid: <1492884298.9.0.641504063815.issue29352@psf.upfronthosting.co.za>
2017-04-22 18:04:58sjtlinkissue29352 messages
2017-04-22 18:04:58sjtcreate