Skip to content

Commit 7af0d06

Browse files
miss-islingtonngoldbaumsobolevn
authored
[3.14] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH-144263)
gh-144257: document return values of PyModule_SetDocString (GH-144258) (cherry picked from commit 3e9a5b0) Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com> Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent c5b23eb commit 7af0d06

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
@@ -675,6 +675,9 @@ or code that creates modules dynamically.
675675
``PyModuleDef`` (such as when using :ref:`multi-phase-initialization`,
676676
``PyModule_Create``, or ``PyModule_FromDefAndSpec``).
677677
678+
Return ``0`` on success.
679+
Return ``-1`` with an exception set on error.
680+
678681
.. versionadded:: 3.5
679682
680683
.. c:function:: int PyUnstable_Module_SetGIL(PyObject *module, void *gil)

0 commit comments

Comments
 (0)