[New-bugs-announce] [issue18668] Properly document setting m_size in PyModuleDef

Eli Bendersky report at bugs.python.org
Tue Aug 6 15:20:46 CEST 2013


New submission from Eli Bendersky:

docs.python.org/dev/c-api/module.html Currently doesn't say much about m_size, except that setting it to -1 means "no memory needed".

m_size == -1 has a much more important use that is not documented: it signals the import machinery that the module should not be ever re-initialized. This has to be documented explicitly.

----------
assignee: eli.bendersky
components: Documentation, Extension Modules
messages: 194542
nosy: eli.bendersky, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Properly document setting m_size in PyModuleDef
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18668>
_______________________________________


More information about the New-bugs-announce mailing list