[issue9518] PyModuleDef_HEAD_INIT does not explicitly initialize all fields of m_base

Amaury Forgeot d'Arc report at bugs.python.org
Tue Sep 28 23:36:24 CEST 2010

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

the patch looks OK, but out of curiosity: do you really declare all the fields of a PyTypeObject?
This structure is really designed so that newer members are left at the end; most types don't need to initialize them, C standard ensures that they will be zero.

nosy: +amaury.forgeotdarc

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list