[issue23559] [doc] inconsistent range example output

New submission from Raphaël Bleuse: 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: "
while (in my understanding) it should be: "
Note the output should be 8 and not 18. Raphaël ---------- assignee: docs@python components: Documentation messages: 237029 nosy: bleuse, docs@python priority: normal severity: normal status: open title: [doc] inconsistent range example output type: behavior versions: Python 3.5 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23559> _______________________________________

Georg Brandl added the comment: The example is correct. "r" is a range(0, 20, 2), whose last element is 18. ---------- nosy: +georg.brandl resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23559> _______________________________________

Georg Brandl added the comment: The example is correct. "r" is a range(0, 20, 2), whose last element is 18. ---------- nosy: +georg.brandl resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23559> _______________________________________
participants (2)
-
Georg Brandl
-
Raphaël Bleuse