[Zope-Coders] __import__ misery

Guido van Rossum guido@python.org
Mon, 28 Jan 2002 11:37:59 -0500


> 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.

--Guido van Rossum (home page: http://www.python.org/~guido/)