Author serhiy.storchaka
Recipients mark.dickinson, serhiy.storchaka, tehybel, terry.reedy
Date 2016-08-30.17:47:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472579275.52.0.595760352961.issue27867@psf.upfronthosting.co.za>
In-reply-to
Content
Actually making slicing always working is easier than I expected. Maybe it is even easier than raise an error.

PySlice_GetIndicesEx() is split on two functions. First convert slice attributes to Py_ssize_t, then scale them to appropriate range depending on the length. Here is a sample patch.
History
Date User Action Args
2016-08-30 17:47:55serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, mark.dickinson, tehybel
2016-08-30 17:47:55serhiy.storchakasetmessageid: <1472579275.52.0.595760352961.issue27867@psf.upfronthosting.co.za>
2016-08-30 17:47:55serhiy.storchakalinkissue27867 messages
2016-08-30 17:47:55serhiy.storchakacreate