Author xtreak
Recipients petrum@gmail.com, serhiy.storchaka, xtreak
Date 2018-07-26.07:07:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532588821.63.0.56676864532.issue34229@psf.upfronthosting.co.za>
In-reply-to
Content
Is there a way to test this or trigger this code using Python syntax? 

`slice(start, stop, step).indices()` uses slice_indices in Objects/sliceobject.c . I checked the function docs https://docs.python.org/2.7/c-api/slice.html#c.PySlice_GetIndices and it states below

> You probably do not want to use this function. If you want to use slice objects in versions of Python prior to 2.3, you would probably do well to incorporate the source of PySlice_GetIndicesEx(), suitably renamed, in the source of your extension.

I couldn't see it's usage too anywhere and with Python 3 we have all integers are implemented as “long” integer objects of arbitrary size and can see only PyLong_Check at https://github.com/python/cpython/blob/master/Objects/sliceobject.c#L178

Thanks
History
Date User Action Args
2018-07-26 07:07:01xtreaksetrecipients: + xtreak, serhiy.storchaka, petrum@gmail.com
2018-07-26 07:07:01xtreaksetmessageid: <1532588821.63.0.56676864532.issue34229@psf.upfronthosting.co.za>
2018-07-26 07:07:01xtreaklinkissue34229 messages
2018-07-26 07:07:01xtreakcreate