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

Function PyTuple_SET_ITEM

python3-sys/src/tupleobject.rs:65–70  ·  view source on GitHub ↗
(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject)

Source from the content-addressed store, hash-verified

63#[inline(always)]
64#[cfg(not(Py_LIMITED_API))]
65pub unsafe fn PyTuple_SET_ITEM(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject) {
66 *(*(op as *mut PyTupleObject))
67 .ob_item
68 .as_mut_ptr()
69 .offset(i as isize) = v;
70}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected