MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / PySequence_Fast_GET_SIZE

Function PySequence_Fast_GET_SIZE

python27-sys/src/objectabstract.rs:235–241  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

233
234#[inline]
235pub unsafe fn PySequence_Fast_GET_SIZE(o: *mut PyObject) -> Py_ssize_t {
236 if crate::listobject::PyList_Check(o) != 0 {
237 crate::listobject::PyList_GET_SIZE(o)
238 } else {
239 crate::tupleobject::PyTuple_GET_SIZE(o)
240 }
241}
242
243#[inline]
244pub unsafe fn PySequence_Fast_GET_ITEM(o: *mut PyObject, i: Py_ssize_t) -> *mut PyObject {

Callers

nothing calls this directly

Calls 3

PyList_GET_SIZEFunction · 0.85
PyList_CheckFunction · 0.70
PyTuple_GET_SIZEFunction · 0.70

Tested by

no test coverage detected