[Zope-Coders] __import__ misery

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


Guido van Rossum wrote:
> 
> > But surely __import__ without the extra args should mean a call with sensible
> > defaults that behaves like a normal import statement would?
> 
> No, it uses the "global" context by default.  The import statement
> explicit passes in globals and locals to get the local context
> established.

Yeah, I see how that'd make sense now...

cheers,

Chris