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 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 <>
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.
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: <>
2016-08-30 17:47:55serhiy.storchakalinkissue27867 messages
2016-08-30 17:47:55serhiy.storchakacreate