[Zope-Coders] __import__ misery

Chris Withers chrisw@nipltd.com
Mon, 28 Jan 2002 16:14:43 +0000


Guido van Rossum wrote:
> 
> Could it be that this is importing a sibling module in a package?  You
> have to pass your globals and locals to __import__ so it knows from
> which package you are making the call.  See docs for __import__.

But surely __import__ without the extra args should mean a call with sensible
defaults that behaves like a normal import statement would?

cheers,

Chris