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 steven.daprano
Recipients Arfrever, llllllllll, rhettinger, serhiy.storchaka, steven.daprano
Date 2015-06-04.11:14:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433416459.36.0.0896500063192.issue24379@psf.upfronthosting.co.za>
In-reply-to
Content
I'm with Serhiy, I don't think we need a "literal", just make slice itself indexable:

reverse = slice(None, None, -1)
reverse = slice[::-1]

The only question in my mind is what slice should do when given just a single index:

slice[0]

I suppose that should be a ValueError?
History
Date User Action Args
2015-06-04 11:14:19steven.dapranosetrecipients: + steven.daprano, rhettinger, Arfrever, serhiy.storchaka, llllllllll
2015-06-04 11:14:19steven.dapranosetmessageid: <1433416459.36.0.0896500063192.issue24379@psf.upfronthosting.co.za>
2015-06-04 11:14:19steven.dapranolinkissue24379 messages
2015-06-04 11:14:19steven.dapranocreate