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 mrabarnett
Recipients ezio.melotti, genetics_jo, mrabarnett
Date 2016-12-05.18:42:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480963376.64.0.702295932953.issue28880@psf.upfronthosting.co.za>
In-reply-to
Content
Not a bug.

Python 2 had 'range', which returned a list, and 'xrange', which returned an xrange object which was iterable:

>>> range(7)
[0, 1, 2, 3, 4, 5, 6]
>>> xrange(7)
xrange(7)
>>> list(xrange(7))
[0, 1, 2, 3, 4, 5, 6]

In Python 3, 'range' was dropped and 'xrange' was renamed to 'range':

>>> range(7)
range(0, 7)
>>> list(range(7))
[0, 1, 2, 3, 4, 5, 6]

BTW, that's not the Windows command prompt, that's the Python prompt.
History
Date User Action Args
2016-12-05 18:42:56mrabarnettsetrecipients: + mrabarnett, ezio.melotti, genetics_jo
2016-12-05 18:42:56mrabarnettsetmessageid: <1480963376.64.0.702295932953.issue28880@psf.upfronthosting.co.za>
2016-12-05 18:42:56mrabarnettlinkissue28880 messages
2016-12-05 18:42:56mrabarnettcreate