[issue35200] Range repr could be better

Raymond Hettinger report at bugs.python.org
Fri Nov 9 11:43:13 EST 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

The current repr is awkward for teaching but does have the virtue of being able to round-trip.  When that is possible, it is what the language usually chooses.

FWIW, you can show ranges with print() and *-unpacking:

    >>> print(*range(1000, 2000, 100))
    1000 1100 1200 1300 1400 1500 1600 1700 1800 1900

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35200>
_______________________________________


More information about the Python-bugs-list mailing list