Message273943
| 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: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 |
|