Message273943
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:55 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, mark.dickinson, tehybel |
2016-08-30 17:47:55 | serhiy.storchaka | set | messageid: <1472579275.52.0.595760352961.issue27867@psf.upfronthosting.co.za> |
2016-08-30 17:47:55 | serhiy.storchaka | link | issue27867 messages |
2016-08-30 17:47:55 | serhiy.storchaka | create | |
|