Message245072
> 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? |
|
Date |
User |
Action |
Args |
2015-06-09 16:05:59 | llllllllll | set | recipients:
+ llllllllll, rhettinger, mark.dickinson, taleinat, Arfrever, steven.daprano, serhiy.storchaka |
2015-06-09 16:05:59 | llllllllll | set | messageid: <1433865959.82.0.286141341523.issue24379@psf.upfronthosting.co.za> |
2015-06-09 16:05:59 | llllllllll | link | issue24379 messages |
2015-06-09 16:05:59 | llllllllll | create | |
|