[mod_python] apache.py suggestions

Gregory Trubetskoy grisha at modpython.org
Fri May 26 12:03:26 EST 2000

On Fri, 26 May 2000, Greg Stein wrote:

> > The reasoning behind using exec to import was that __import__ doesn't
> > understand dots (packages),
> Eh? Sure it does.

Looks like it does indeed. I wonder why I put this comment in
(now obsolete) httpdapy:

                # we could use __import__ but it can't handle packages
                exec "import " + module_name

May be it's something new with 1.5 or 1.5.2? I'm almost tempted to compile
an old Python version, but I think I'll pass.... :-)


More information about the Mod_python mailing list