[issue13431] Pass context information into the extension module init function

Martin v. Löwis report at bugs.python.org
Sat Nov 19 11:16:08 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

This approach is not correct C. You may pass an "incorrect" number of arguments only if the function is declared with an ellipsis, else the behavior is undefined (6.5.5.2p6). Your proposed approach works with most implementations of C, but Python shouldn't deliberately rely on undefined behavior.

----------
nosy: +loewis

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


More information about the Python-bugs-list mailing list