Simple Python Sandbox

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Aug 21 20:56:18 EDT 2010


Stephen Hansen wrote:

> Me, I'm going to go farther on my own installation and kill import
> entirely, and do a sort of require() which returns a special proxied
> version of an imported module

Note that you can install an __import__ function in the
builtins to provide this kind of functionality while still
allowing scripts to use the normal import syntax.

-- 
Greg



More information about the Python-list mailing list