Amaury Forgeot d'Arc added the comment:

I'm not sure the fix is correct: PyModule_GetDef() can return NULL without 
setting an error, for example when the init function returns a regular Python 
module.

I'm OK to require the init function to return a module created with 
PyModule_Create(), and fail when it's not the case. But an exception should be 
set.
(and a unit test would help...)

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18426>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to