How to permanently remove __import__?

Peter Hansen peter at engcorp.com
Tue Jun 17 18:32:44 EDT 2003


martin z wrote:
> 
> Rexec tried to do too much is my understanding - I'm just redirecting Import
> into a new (custom) filesystem.  I haven't looked at Bastion.

So you aren't concerned that anyone will be able to find a leftover reference
to the original import that might have been stored in the locals of a function 
or method somewhere?  Or that they'll simply be able to override yours with
a new one that basically restores the original functionality?  Your comment
about "under any circumstances" sounded extreme, but maybe you aren't quite
so concerned about such things as you sounded. :-)




More information about the Python-list mailing list