Simple Python Sandbox
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 :)
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 487 bytes
Desc: OpenPGP digital signature
More information about the Python-list