[issue35200] Range repr could be better

Jules Lasne report at bugs.python.org
Fri Nov 9 18:12:54 EST 2018


Jules Lasne <jules.lasne at gmail.com> added the comment:

As you can see in his PR (https://github.com/python/cpython/pull/10436), he added multiple display types based on the size of the range.

This is easily represented in the dumb_range_repr function: https://github.com/python/cpython/pull/10436/files#diff-95a46658bf7fed08423d060e8f9c1dc2R18

Or here is the C implementation: https://github.com/python/cpython/pull/10436/files#diff-5782f3fcbdfb176507359c3712c42655R597

----------

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


More information about the Python-bugs-list mailing list