[issue4438] Add an easy way to __import___ submodules
Mart Sõmermaa
report at bugs.python.org
Thu Nov 27 13:53:31 CET 2008
Mart Sõmermaa <mrts at mrts.pri.ee> added the comment:
Corrections and clarifications:
* I'd say labeling the patch naive and "breaking things" was misleading
(there was a breakage that resulted from stale files with incorrect
permissions from my previous build of Python 2.6; after a make distclean
all tests passed as described above). The patch is correct and
backwards-compatible in Python level, but it introduces a change in the
C API:
PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(char *name,
- PyObject *globals, PyObject *locals, PyObject *fromlist, int level);
+ PyObject *globals, PyObject *locals, PyObject *fromlist,
+ int level, char submodule);
* The patch was made against Python 2.6 release source.
* The argument is named 'submodule' instead of 'toplevel' to avoid
confusion with 'level'.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4438>
_______________________________________
More information about the Python-bugs-list
mailing list