[Python-bugs-list] [ python-Bugs-424106 ] PyImport_ExecCodeModule not correct

noreply@sourceforge.net noreply@sourceforge.net
Mon, 14 May 2001 18:30:37 -0700


Bugs item #424106, was updated on 2001-05-14 18:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424106&group_id=5470

Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Jones (richard)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyImport_ExecCodeModule not correct

Initial Comment:
PyImport_ExecCodeModule doesn't handle package imports
correctly. Using it to import a module "A.B" will
result in an entry in sys.modules of "A.B" but no
information for module "A" will be created. The
documentation in the C API reference makes no statement
about this - just that the module name may be of the
form "package.module". Looking at the code in import.c,
there is definitely no handling of the package. If this
is the intended behaviour, please amend the
documentation (and possibly give some hint as to how
one _should_ go about importing a code object in a
package structure ;)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=424106&group_id=5470