Message237029
Reading the documentation for ranges (see https://docs.python.org/3.5/library/stdtypes.html#ranges), the example using a negative index output is inconsistent with the range effective behaviour.
One can read:
"
>>> r[-1]
18
"
while (in my understanding) it should be:
"
>>> r[-1]
8
"
Note the output should be 8 and not 18.
Raphaël |
|
Date |
User |
Action |
Args |
2015-03-02 08:21:16 | bleuse | set | recipients:
+ bleuse, docs@python |
2015-03-02 08:21:16 | bleuse | set | messageid: <1425284476.5.0.408396499523.issue23559@psf.upfronthosting.co.za> |
2015-03-02 08:21:16 | bleuse | link | issue23559 messages |
2015-03-02 08:21:16 | bleuse | create | |
|