Julien Palard <[email protected]> added the comment:
If I understand correctly, you'd like str(range(10)) to return "<range object
[1, 2, ..., 8, 9]>"?
I'm really unconfortable doing this, for me __str__ is here to return an
“informal or nicely printable string representation of an object", not a
convoluted "<{type(object)} object ...>" notation.
I agree with you, the [0, 1, ..., 8, 9] notation is too confusing with the repr
of a list, that's why I proposed the "0, 1, ..., 8, 9" which looks nice.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35200>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com