Simple Python Sandbox

Stephen Hansen me+list/python at ixokai.io
Sun Aug 22 05:23:42 CEST 2010


On 8/21/10 5:56 PM, Gregory Ewing wrote:
> 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.

I really don't know why I didn't think of that to start with.

Doh. Thanks :)

-- 

   Stephen Hansen
   ... Also: Ixokai
   ... Mail: me+list/python (AT) ixokai (DOT) io
   ... Blog: http://meh.ixokai.io/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20100821/4b931098/attachment.pgp>


More information about the Python-list mailing list