Message220806
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. |
|
Date |
User |
Action |
Args |
2014-06-17 07:54:58 | kt | set | recipients:
+ kt, rhettinger, docs@python |
2014-06-17 07:54:58 | kt | set | messageid: <1402991698.89.0.209245572763.issue21785@psf.upfronthosting.co.za> |
2014-06-17 07:54:58 | kt | link | issue21785 messages |
2014-06-17 07:54:58 | kt | create | |
|