(An Unofficial) Python FAQ Wiki

putting the community back in "maintained by the community"

4e9i

Marius Gedminas suggests that m = import(s, {}, {}, []), and notes that Zope3 uses this a lot. Although this contradicts the standard library documentation (http://www.python.org/doc/current/lib/built-in-funcs.html), which claims that import('x.y.z', {}, {}, fromlist) would only return z if fromlist is non-empty. Bug in the documentation?