https://github.com/python/cpython/commit/b5129b89bbf475ce36a19cadb4e2302cc3c71b0d
commit: b5129b89bbf475ce36a19cadb4e2302cc3c71b0d
branch: 3.13
author: Nathan Goldbaum <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-01-27T18:30:48Z
summary:

[3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) 
(GH-144286)

(cherry picked from commit 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837)

Co-authored-by: sobolevn <[email protected]>

files:
M Doc/c-api/module.rst

diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index 23a4cfb0e473a9..4f9f4ac6f41bfe 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -529,6 +529,9 @@ objects dynamically. Note that both 
``PyModule_FromDefAndSpec`` and
    ``PyModuleDef``, using either ``PyModule_Create`` or
    ``PyModule_FromDefAndSpec``.
 
+   Return ``0`` on success.
+   Return ``-1`` with an exception set on error.
+
    .. versionadded:: 3.5
 
 .. c:function:: int PyModule_AddFunctions(PyObject *module, PyMethodDef 
*functions)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to