MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _PyEval_SliceIndex

Function _PyEval_SliceIndex

Python/ceval.c:4352–4378  ·  view source on GitHub ↗

Extract a slice index from a PyInt or 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. Return 0 on error, 1 on success. */ Note: If v is NULL, return success without storing into *pi. This is because_PyEval_SliceIndex

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

PySlice_GetIndicesExFunction · 0.85
apply_sliceFunction · 0.85
assign_sliceFunction · 0.85

Calls 3

PyNumber_AsSsize_tFunction · 0.85
PyErr_SetStringFunction · 0.85
PyErr_OccurredFunction · 0.70

Tested by

no test coverage detected