File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1019,10 +1019,10 @@ or code that creates modules dynamically.
10191019 Set the docstring for *module * to *docstring *.
10201020 This function is called automatically when creating a module from
10211021 ``PyModuleDef `` (such as when using :ref: `multi-phase-initialization `,
1022- ``PyModule_Create ``, or ``PyModule_FromDefAndSpec ``). Returns ``0`` on
1023- success and ``-1`` on failure. Failure can happen if creating a Python string
1024- from *docstring* fails or if setting the ``__doc__ `` attribute on *module*
1025- fails .
1022+ ``PyModule_Create ``, or ``PyModule_FromDefAndSpec ``).
1023+
1024+ Return ``0 `` on success.
1025+ Return ``-1`` with an exception set on error .
10261026
10271027 .. versionadded:: 3.5
10281028
You can’t perform that action at this time.
0 commit comments