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
Date 2018-11-09.16:25:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541780751.51.0.788709270274.issue35200@psf.upfronthosting.co.za>
In-reply-to
Content
This morning I was teaching Python (again and again), and again I was thinking we could do better about the representation of ranges.

Typically in the current repr of ranges we do not see that the end is excluded:

>>> range(10)
range(0, 10)

However it has the (little?) benefit of respecting the "repr gives valid Python".

I propose to change it to:

>>> range(10)
<range object [0, 1, ..., 8, 9]>
History
Date User Action Args
2018-11-09 16:25:51mdksetrecipients: + mdk
2018-11-09 16:25:51mdksetmessageid: <1541780751.51.0.788709270274.issue35200@psf.upfronthosting.co.za>
2018-11-09 16:25:51mdklinkissue35200 messages
2018-11-09 16:25:51mdkcreate