Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 562d9cb

Browse files
committed
Issue #18668: Further clarify m_size setting for non-negative values
2 parents 8a44c05 + 43694a5 commit 562d9cb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/c-api/module.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ These functions are usually used in the module initialization function.
198198
freed when the module object is deallocated, after the :c:member:`m_free`
199199
function has been called, if present.
200200
201-
Setting ``m_size`` to a positive value specifies the size of the additional
202-
memory required by the module. Setting it to ``-1`` means that the module can
203-
not be re-initialized because it has global state. Setting it to ``0`` is
204-
forbidden.
201+
Setting ``m_size`` to ``-1`` means that the module can not be
202+
re-initialized because it has global state. Setting it to a non-negative
203+
value means that the module can be re-initialized and specifies the
204+
additional amount of memory it requires for its state.
205205
206206
See :PEP:`3121` for more details.
207207

0 commit comments

Comments
 (0)