Skip to content

Commit 8831e92

Browse files
committed
Comment fixes.
1 parent c6e65b6 commit 8831e92

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Doc/c-api/module.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,10 @@ Module Objects
9393
.. c:function:: void* PyModule_GetState(PyObject *module)
9494
9595
The module’s state can be stored in per‑module memory, which is obtained by calling this function.
96-
This makes modules safe to use with sub‑interpreters.
9796
9897
The amount of memory allocated for the module’s state is specified by the :c:member:`PyModuleDef.m_size` field.
9998
100-
The function returns a pointer to the state memory, or **NULL**
101-
if the argument is not a ``PyModule`` object or
102-
if the module does not support local state (i.e., :c:member:`PyModuleDef.m_size` is ``-1``).
99+
The function returns a pointer to the state memory, or ``NULL``.
103100
104101
.. c:function:: PyModuleDef* PyModule_GetDef(PyObject *module)
105102

0 commit comments

Comments
 (0)