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 llllllllll
Recipients Arfrever, llllllllll, mark.dickinson, rhettinger, serhiy.storchaka, steven.daprano, taleinat
Date 2015-06-09.16:05:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433865959.82.0.286141341523.issue24379@psf.upfronthosting.co.za>
In-reply-to
Content
> What I'm missing is a way to use such an object to actually index/slice something

Sorry, I am not sure I understand what you mean by this? You can pass a slice object, or a tuple of slices in subscript notation.

>>> [1, 2, 3, 4][slice(2)]
[1, 2]


Also, I am not currently subscribed to python-ideas; what is the common practice for posting new threads?
History
Date User Action Args
2015-06-09 16:05:59llllllllllsetrecipients: + llllllllll, rhettinger, mark.dickinson, taleinat, Arfrever, steven.daprano, serhiy.storchaka
2015-06-09 16:05:59llllllllllsetmessageid: <1433865959.82.0.286141341523.issue24379@psf.upfronthosting.co.za>
2015-06-09 16:05:59lllllllllllinkissue24379 messages
2015-06-09 16:05:59llllllllllcreate