We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8c792 commit d55b493Copy full SHA for d55b493
doc/sphinx/source/refcount.rst
@@ -34,9 +34,9 @@ Here is an example of a normal ``PyObject`` creation and deallocation:
34
.. code-block:: c
35
:linenos:
36
37
+ #include "Python.h"
38
void print_hello_world(void) {
39
PyObject *pObj = NULL:
-
40
pObj = PyBytes_FromString("Hello world\n"); /* Object creation, ref count = 1. */
41
PyObject_Print(pLast, stdout, 0);
42
Py_DECREF(pObj); /* ref count becomes 0, object deallocated.
0 commit comments