[issue21226] PyImport_ExecCodeModuleObject not setting module attributes
Trevor Caira
report at bugs.python.org
Mon Apr 14 23:04:27 CEST 2014
New submission from Trevor Caira:
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
----------
components: Library (Lib)
messages: 216217
nosy: brett.cannon, eric.snow, ncoghlan, trevor3
priority: normal
severity: normal
status: open
title: PyImport_ExecCodeModuleObject not setting module attributes
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21226>
_______________________________________
More information about the Python-bugs-list
mailing list