Message282450
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. |
|
Date |
User |
Action |
Args |
2016-12-05 18:42:56 | mrabarnett | set | recipients:
+ mrabarnett, ezio.melotti, genetics_jo |
2016-12-05 18:42:56 | mrabarnett | set | messageid: <1480963376.64.0.702295932953.issue28880@psf.upfronthosting.co.za> |
2016-12-05 18:42:56 | mrabarnett | link | issue28880 messages |
2016-12-05 18:42:56 | mrabarnett | create | |
|