From: Nathan Goldbaum Date: Tue, 27 Jan 2026 18:30:48 +0000 (-0700) Subject: [3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5129b89bbf475ce36a19cadb4e2302cc3c71b0d;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH-144286) (cherry picked from commit 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837) Co-authored-by: sobolevn --- diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 23a4cfb0e473..4f9f4ac6f41b 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)