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 fc2e23c commit 289360aCopy full SHA for 289360a
Doc/c-api/module.rst
@@ -102,6 +102,10 @@ Module Objects
102
Return a pointer to the :c:type:`PyModuleDef` struct from which the module was
103
created, or ``NULL`` if the module wasn't created from a definition.
104
105
+ On error, return ``NULL`` with an exception set.
106
+ Use :c:func:`PyErr_Occurred` to tell this case apart from a mising
107
+ :c:type:`!PyModuleDef`.
108
+
109
110
.. c:function:: PyObject* PyModule_GetFilenameObject(PyObject *module)
111
0 commit comments