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

Function PyList_SET_ITEM

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

Source from the content-addressed store, hash-verified

47/// Macro, *only* to be used to fill in brand new lists
48#[inline(always)]
49pub unsafe fn PyList_SET_ITEM(op: *mut PyObject, i: Py_ssize_t, v: *mut PyObject) {
50 *(*(op as *mut PyListObject)).ob_item.offset(i as isize) = v;
51}
52
53#[cfg_attr(windows, link(name = "pythonXY"))]
54extern "C" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected