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 theller
Recipients theller
Date 2008-12-11.12:01:55
SpamBayes Score 1.6685342e-05
Marked as misclassified No
Message-id <1228996917.04.0.00625258581856.issue4632@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2008-12-11 12:01:57thellersetrecipients: + theller
2008-12-11 12:01:57thellersetmessageid: <1228996917.04.0.00625258581856.issue4632@psf.upfronthosting.co.za>
2008-12-11 12:01:56thellerlinkissue4632 messages
2008-12-11 12:01:55thellercreate