On 25 Oct 2005 08:51:08 -0700, "David Poundall" <[EMAIL PROTECTED]> wrote:
>This worked ... > >def my_import(name): > mod = __import__(name) > components = name.split('.') > for comp in components[1:]: > mod = getattr(mod, comp) > return mod > >for reasons given here... > >http://www.python.org/doc/2.3.5/lib/built-in-funcs.html > Aha. You didn't mention multi-dot names ;-) But was that the real problem? Your original code wasn't using anything corresponding to mod above. Regards, Bengt Richter -- http://mail.python.org/mailman/listinfo/python-list