[New-bugs-announce] [issue35200] Range repr could be better
report at bugs.python.org
Fri Nov 9 11:25:51 EST 2018
New submission from Julien Palard <julien+python at palard.fr>:
This morning I was teaching Python (again and again), and again I was thinking we could do better about the representation of ranges.
Typically in the current repr of ranges we do not see that the end is excluded:
However it has the (little?) benefit of respecting the "repr gives valid Python".
I propose to change it to:
<range object [0, 1, ..., 8, 9]>
title: Range repr could be better
versions: Python 3.8
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce