summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/function.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/function.rst')
-rw-r--r--Doc/c-api/function.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index 2096882..ad00842 100644
--- a/Doc/c-api/function.rst
+++ b/Doc/c-api/function.rst
@@ -61,9 +61,11 @@ There are a few functions specific to Python functions.
.. c:function:: PyObject* PyFunction_GetModule(PyObject *op)
- Return the *__module__* attribute of the function object *op*. This is normally
- a string containing the module name, but can be set to any other object by
- Python code.
+ Return a :term:`borrowed reference` to the *__module__* attribute of the
+ function object *op*. It can be *NULL*.
+
+ This is normally a string containing the module name, but can be set to any
+ other object by Python code.
.. c:function:: PyObject* PyFunction_GetDefaults(PyObject *op)