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 ammar2
Recipients Suraj Kumar, ammar2, docs@python
Date 2017-01-12.17:04:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484240689.25.0.8791147234.issue29254@psf.upfronthosting.co.za>
In-reply-to
Content
Given `slice[start:end]`:

What this line is trying to say is that the slice index is inclusive for the start parameter and exclusive for the end parameter.

In mathematical/interval notation this would look like [start, end)

As a quick example look at the word "Python"
Index  012345
Letter Python

If you do word[:2], the result is 'Py', notice how the t is excluded.
History
Date User Action Args
2017-01-12 17:04:49ammar2setrecipients: + ammar2, docs@python, Suraj Kumar
2017-01-12 17:04:49ammar2setmessageid: <1484240689.25.0.8791147234.issue29254@psf.upfronthosting.co.za>
2017-01-12 17:04:49ammar2linkissue29254 messages
2017-01-12 17:04:48ammar2create