MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / set_ref

Function set_ref

src/mod.c:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static PyObject* set_ref(PyObject* self, PyObject* args) {
57 PyObject* obj;
58 Py_ssize_t count;
59 if (!PyArg_ParseTuple(
60 args,
61 "On",
62 &obj,
63 &count
64 )) return NULL;
65 obj->ob_refcnt = count; // i dont care
66 Py_RETURN_NONE;
67}
68
69static PyObject* force_set_attr(PyObject* self, PyObject* args) {
70 PyTypeObject* type;

Callers 1

moveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected