https://github.com/python/cpython/commit/3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837 commit: 3e9a5b022f01fa95b4485fcf2c0c87bfb9fff837 branch: main author: Nathan Goldbaum <[email protected]> committer: ZeroIntensity <[email protected]> date: 2026-01-27T02:15:16-05:00 summary:
gh-144257: document return values of PyModule_SetDocString (GH-144258) 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 431151b841ebb6..90f55add56bf52 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -1021,6 +1021,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]
