mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480)
This commit is contained in:
parent
305ccbe27e
commit
2ddf5a19c3
3 changed files with 7 additions and 5 deletions
|
@ -4889,7 +4889,7 @@ do_call_core(PyObject *func, PyObject *callargs, PyObject *kwdict)
|
|||
/* Extract a slice index from a PyLong or an object with the
|
||||
nb_index slot defined, and store in *pi.
|
||||
Silently reduce values larger than PY_SSIZE_T_MAX to PY_SSIZE_T_MAX,
|
||||
and silently boost values less than -PY_SSIZE_T_MAX-1 to -PY_SSIZE_T_MAX-1.
|
||||
and silently boost values less than PY_SSIZE_T_MIN to PY_SSIZE_T_MIN.
|
||||
Return 0 on error, 1 on success.
|
||||
*/
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue