Skip to content

Commit b5129b8

Browse files
ngoldbaumsobolevn
andauthored
[3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH-144286)
(cherry picked from commit 3e9a5b0) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 3df9e31 commit b5129b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/c-api/module.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ objects dynamically. Note that both ``PyModule_FromDefAndSpec`` and
529529
``PyModuleDef``, using either ``PyModule_Create`` or
530530
``PyModule_FromDefAndSpec``.
531531
532+
Return ``0`` on success.
533+
Return ``-1`` with an exception set on error.
534+
532535
.. versionadded:: 3.5
533536
534537
.. c:function:: int PyModule_AddFunctions(PyObject *module, PyMethodDef *functions)

0 commit comments

Comments
 (0)