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

Function Py_DECREF

python3-sys/src/object.rs:905–914  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

903
904#[inline(always)]
905pub unsafe fn Py_DECREF(op: *mut PyObject) {
906 if cfg!(py_sys_config = "Py_REF_DEBUG") {
907 Py_DecRef(op)
908 } else {
909 (*op).ob_refcnt -= 1;
910 if (*op).ob_refcnt == 0 {
911 _Py_Dealloc(op)
912 }
913 }
914}
915
916#[inline(always)]
917pub unsafe fn Py_CLEAR(op: &mut *mut PyObject) {

Callers 6

Py_CLEARFunction · 0.70
Py_XDECREFFunction · 0.70
release_refMethod · 0.50
dropMethod · 0.50
deallocMethod · 0.50
sq_itemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected