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 kt
Recipients docs@python, kt, rhettinger
Date 2014-06-17.07:54:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402991698.89.0.209245572763.issue21785@psf.upfronthosting.co.za>
In-reply-to
Content
Do note that things are not as simple as "slices with negative indices are treated differently from scalar negative indicies".

Namely, behaviour differs whether you use [] or .__getitem__, and whether you use [a:b] or [slice(a,b)]. This does not make sense from a specification perspective, but has to be made clear in the docs then.

Besides, Jython does not have this problem and I presume other Python implementations might also be fine (e.g. PyPy or whatever else there exists, couldn't test now).

Hence, although fixing the docs does seem like a simple solution, if you want to regard the docs as a "specification of the Python language" rather than a list of particular CPython features, this won't be reasonable.
History
Date User Action Args
2014-06-17 07:54:58ktsetrecipients: + kt, rhettinger, docs@python
2014-06-17 07:54:58ktsetmessageid: <1402991698.89.0.209245572763.issue21785@psf.upfronthosting.co.za>
2014-06-17 07:54:58ktlinkissue21785 messages
2014-06-17 07:54:58ktcreate