[Import-sig] Imputil

Thomas Heller thomas.heller@ion-tof.com
Fri, 9 Feb 2001 14:57:29 +0100

Guido writes:
> OK, I see that there's some convergence here.  It appears that most
> uses of PyImport_ImportModule() should really be using
> PyImport_Import() instead.  There are two solutions: change the body
> of PyImport_ImportModule() to call PyImport_Import(), or change all
> (most?) calls to PyImport_ImportModule() to use PyImport_Import()
> instead.
> I'd vote for the former -- it's less work and more effective.  Note
> that those places that really need to use the built-in import
> primitive (e.g. the default built-in __import__ function) can use
> PyImport_ImportModuleEx().  __import__ already does this.
> Somebody submit a patch (or just check it in if you're feeling very
> confident :-), please...
Done so (submitted the patch, not checked in)