https://github.com/python/cpython/commit/7af0d0607d50e53efabb836f551e5e8d7c4510e8 commit: 7af0d0607d50e53efabb836f551e5e8d7c4510e8 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: ZeroIntensity <[email protected]> date: 2026-01-27T07:21:38Z summary:
[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 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837) Co-authored-by: Nathan Goldbaum <[email protected]> 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 11b488e4e52069..eed47c8966c473 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -675,6 +675,9 @@ or code that creates modules dynamically. ``PyModuleDef`` (such as when using :ref:`multi-phase-initialization`, ``PyModule_Create``, or ``PyModule_FromDefAndSpec``). + Return ``0`` on success. + Return ``-1`` with an exception set on error. + .. versionadded:: 3.5 .. c:function:: int PyUnstable_Module_SetGIL(PyObject *module, void *gil) _______________________________________________ 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]
