]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-144257: document return values of PyModule_SetDocString (GH-144258) (GH...
authorNathan Goldbaum <nathan.goldbaum@gmail.com>
Tue, 27 Jan 2026 18:30:48 +0000 (11:30 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Jan 2026 18:30:48 +0000 (18:30 +0000)
(cherry picked from commit 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837)

Co-authored-by: sobolevn <mail@sobolevn.me>
Doc/c-api/module.rst

index 23a4cfb0e473a90ef99c6bbf67ab4a9daaed13bf..4f9f4ac6f41bfebac90a67fb624bc19376f295ed 100644 (file)
@@ -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)