Message330066
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. |
|
Date |
User |
Action |
Args |
2018-11-18 22:27:11 | mdk | set | recipients:
+ mdk, rhettinger, ncoghlan, steven.daprano, serhiy.storchaka, seluj78 |
2018-11-18 22:27:11 | mdk | set | messageid: <1542580031.09.0.788709270274.issue35200@psf.upfronthosting.co.za> |
2018-11-18 22:27:11 | mdk | link | issue35200 messages |
2018-11-18 22:27:11 | mdk | create | |
|