This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients mdk, ncoghlan, rhettinger, seluj78, serhiy.storchaka, steven.daprano
Date 2018-11-18.22:27:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542580031.09.0.788709270274.issue35200@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-11-18 22:27:11mdksetrecipients: + mdk, rhettinger, ncoghlan, steven.daprano, serhiy.storchaka, seluj78
2018-11-18 22:27:11mdksetmessageid: <1542580031.09.0.788709270274.issue35200@psf.upfronthosting.co.za>
2018-11-18 22:27:11mdklinkissue35200 messages
2018-11-18 22:27:11mdkcreate