ImportModule (was Re: [Python-Dev] for the todo list: cStringIO uses string.joinfields)
Gordon McMillan
gmcm@hypernet.com
Sat, 13 May 2000 16:54:09 -0400
[Fredrik]
> > > (btw, the C API reference implies that ImportModule doesn't
> > > use import hooks. does that mean that cStringIO doesn't work
> > > under e.g. Gordon's installer?)
[Guido]
> Hm, the way I read the code (but I didn't write it!) it calls
> PyImport_Import, which is a higher level function that *does* use
> the __import__ hook. Maybe this wasn't always the case?
In stock 1.5.2 it's PyImport_ImportModule. Same in cPickle.
I'm delighted to see them moving towards PyImport_Import.
- Gordon