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

Function PyTuple_SET_ITEM

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

Source from the content-addressed store, hash-verified

49/// Macro, *only* to be used to fill in brand new tuples
50#[inline(always)]
51pub unsafe fn PyTuple_SET_ITEM(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject) {
52 *(*(op as *mut PyTupleObject))
53 .ob_item
54 .as_mut_ptr()
55 .offset(i as isize) = v;
56}
57
58#[cfg_attr(windows, link(name = "pythonXY"))]
59extern "C" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected