You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sliceobject and ceval changed the parameter types of
slice objects to ssize_t, but the code still requires
an int (sometimes not even a long); it should use the
new __index__ slot; at the very least, it should be
consistent about what it does accept.
[issue 1] function PySlice_GetIndices takes Py_ssize_t
parameters for (length, start, stop, step)
but then does a PyInt_Check on each of start, stop,
step. (An XXX to allow longs was also removed.) It *
should* use the new __index__ slot.
[issue 2] Later in the same file, function slice_
indices takes a PyObject len parameter, but then uses
PyInt_AsLong rather than __index__ (or even PyInt_
AsSsize_t) to create Py_ssize_t ilen.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: