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 trevor3
Recipients brett.cannon, eric.snow, ncoghlan, trevor3
Date 2014-04-14.21:04:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397509467.13.0.547431443442.issue21226@psf.upfronthosting.co.za>
In-reply-to
Content
In Python/import.c, PyImport_ExecCodeModuleObject creates a new module object but doesn't set all of the attributes required for modules, such as __spec__ or __loader__.

This breaks mod_wsgi from 3.3 and up, which depends on PyImport_ExecCodeModuleEx, which delegates to PyImport_ExecCodeModuleObject for its module creation logic. See https://code.google.com/p/modwsgi/source/browse/mod_wsgi/mod_wsgi.c#6289
History
Date User Action Args
2014-04-14 21:04:27trevor3setrecipients: + trevor3, brett.cannon, ncoghlan, eric.snow
2014-04-14 21:04:27trevor3setmessageid: <1397509467.13.0.547431443442.issue21226@psf.upfronthosting.co.za>
2014-04-14 21:04:27trevor3linkissue21226 messages
2014-04-14 21:04:27trevor3create