We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed05eba commit 7bf86c7Copy full SHA for 7bf86c7
Doc/c-api/structures.rst
@@ -559,8 +559,9 @@ definition with the same method name.
559
.. c:function:: PyObject *PyCFunction_GetSelf(PyObject *func)
560
561
Get the "self" object on *func*. This is the object that would be passed
562
- to the first argument of a :c:type:`PyCFunction`. In modules, this is the
563
- module object.
+ to the first argument of a :c:type:`PyCFunction`. For C function objects
+ created through a :c:type:`PyMethodDef` on a :c:type:`PyModuleDef`, this
564
+ is the resulting module object.
565
566
If *func* is not a C function object, this fails with a
567
:class:`SystemError`.
0 commit comments