This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients Padowan, amaury.forgeotdarc, christian.heimes, python-dev
Date 2013-07-11.09:32:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373535153.0.0.840256567927.issue18426@psf.upfronthosting.co.za>
In-reply-to
Content
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...)
History
Date User Action Args
2013-07-11 09:32:33amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, christian.heimes, python-dev, Padowan
2013-07-11 09:32:32amaury.forgeotdarcsetmessageid: <1373535153.0.0.840256567927.issue18426@psf.upfronthosting.co.za>
2013-07-11 09:32:32amaury.forgeotdarclinkissue18426 messages
2013-07-11 09:32:32amaury.forgeotdarccreate