mirror of
https://github.com/python/cpython.git
synced 2026-04-13 23:31:02 +00:00
gh-144257: document return values of PyModule_SetDocString (GH-144258)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
2520617361
commit
3e9a5b022f
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue