[Python-checkins] cpython (3.3): Issue #18668: Further clarify m_size setting for non-negative values
eli.bendersky
python-checkins at python.org
Sat Aug 10 14:58:46 CEST 2013
http://hg.python.org/cpython/rev/f55ba27776d4
changeset: 85079:f55ba27776d4
branch: 3.3
parent: 85077:8fbaf4e649af
user: Eli Bendersky <eliben at gmail.com>
date: Sat Aug 10 05:57:27 2013 -0700
summary:
Issue #18668: Further clarify m_size setting for non-negative values
files:
Doc/c-api/module.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -191,10 +191,10 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list