MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyTuple_GET_SIZE

Function PyTuple_GET_SIZE

python3-sys/src/tupleobject.rs:57–60  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

55#[inline(always)]
56#[cfg(not(Py_LIMITED_API))]
57pub unsafe fn PyTuple_GET_SIZE(op: *mut PyObject) -> Py_ssize_t {
58 debug_assert!(PyTuple_Check(op) != 0);
59 Py_SIZE(op)
60}
61
62/// Macro, *only* to be used to fill in brand new tuples
63#[inline(always)]

Callers 2

PyCode_GetNumFreeFunction · 0.70
lenMethod · 0.50

Calls 1

Py_SIZEFunction · 0.70

Tested by

no test coverage detected