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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18668>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to