Message 174778 - Python tracker (original) (raw)

New patch that fixes the error message for badly typed slice arguments.

Also tweaks a couple of other details:

Look at compute_slice_indices() in Objects/rangeobject.c.

Will do. I'm not quite sure I even understand how that code's managing to work at the moment: I see the Py_ssize_t case, but I don't see the fallback code for the case when things are too large for a Py_ssize_t.