]> granicus.if.org Git - python/commitdiff
Issue #18668: Further clarify m_size setting for non-negative values
authorEli Bendersky <eliben@gmail.com>
Sat, 10 Aug 2013 12:57:27 +0000 (05:57 -0700)
committerEli Bendersky <eliben@gmail.com>
Sat, 10 Aug 2013 12:57:27 +0000 (05:57 -0700)
Doc/c-api/module.rst

index 745b39663823252727b0ee509d768c078d4fb446..e80e0eaa08e9f9b5f0dec0d4ec4303805aba8f60 100644 (file)
@@ -191,10 +191,10 @@ These functions are usually used in the module initialization function.
       freed when the module object is deallocated, after the :c:member:`m_free`
       function has been called, if present.
 
-      Setting ``m_size`` to a positive value specifies the size of the additional
-      memory required by the module. Setting it to ``-1`` means that the module can
-      not be re-initialized because it has global state. Setting it to ``0`` is
-      forbidden.
+      Setting ``m_size`` to ``-1`` means that the module can not be
+      re-initialized because it has global state. Setting it to a non-negative
+      value means that the module can be re-initialized and specifies the
+      additional amount of memory it requires for its state.
 
       See :PEP:`3121` for more details.