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

Function _PySequence_IterSearch

Objects/abstract.c:2288–2368  ·  view source on GitHub ↗

Iterate over seq. Result depends on the operation: PY_ITERSEARCH_COUNT: -1 if error, else # of times obj appears in seq. PY_ITERSEARCH_INDEX: 0-based index of first occurrence of obj in seq; set ValueError and return -1 if none found; also return -1 on error. Py_ITERSEARCH_CONTAINS: return 1 if obj in seq, else 0; -1 on error. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

PySequence_CountFunction · 0.85
PySequence_ContainsFunction · 0.85
PySequence_IndexFunction · 0.85
slot_sq_containsFunction · 0.85
instance_containsFunction · 0.85

Calls 7

null_errorFunction · 0.85
PyObject_GetIterFunction · 0.85
type_errorFunction · 0.85
PyIter_NextFunction · 0.85
PyObject_RichCompareBoolFunction · 0.85
PyErr_SetStringFunction · 0.85
PyErr_OccurredFunction · 0.50

Tested by

no test coverage detected