gh-144257: document return values of PyModule_SetDocString (GH-144258)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Nathan Goldbaum 2026-01-27 00:15:16 -07:00 committed by GitHub
parent 2520617361
commit 3e9a5b022f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)