[issue23559] [doc] inconsistent range example output
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 rep...@bugs.python.org http://bugs.python.org/issue23559 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[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: r[-1] 18 while (in my understanding) it should be: r[-1] 8 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 rep...@bugs.python.org http://bugs.python.org/issue23559 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com