Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Doc/c-api/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,10 @@ or code that creates modules dynamically.
Set the docstring for *module* to *docstring*.
This function is called automatically when creating a module from
``PyModuleDef`` (such as when using :ref:`multi-phase-initialization`,
``PyModule_Create``, or ``PyModule_FromDefAndSpec``).
``PyModule_Create``, or ``PyModule_FromDefAndSpec``). Returns ``0`` on
success and ``-1`` on failure. Failure can happen if creating a Python string
from *docstring* fails or if setting the ``__doc__`` attribute on *module*
fails.
Comment thread
ngoldbaum marked this conversation as resolved.
Outdated

.. versionadded:: 3.5

Expand Down
Loading