Message77604
The 2to3 fixer translates this code:
range(42)[::-1]
into this one:
list(range(42)[::-1]
which throws an error when run with Python 3:
Traceback (most recent call last):
File "test.py", line 1, in <module>
print(list(range(42)[::-1]))
TypeError: sequence index must be integer, not 'slice' |
|
Date |
User |
Action |
Args |
2008-12-11 12:01:57 | theller | set | recipients:
+ theller |
2008-12-11 12:01:57 | theller | set | messageid: <1228996917.04.0.00625258581856.issue4632@psf.upfronthosting.co.za> |
2008-12-11 12:01:56 | theller | link | issue4632 messages |
2008-12-11 12:01:55 | theller | create | |
|