12 Aug
1999
12 Aug
'99
3:15 p.m.
import sys del sys.path del sys.modules['__builtin__'] del __builtins__ del sys.modules del something_else_important
...would be a pretty good way to attack a system :^)
The planned restrictions on what you can import wouldn't allow this particular spelling, and wrappers could be used to protect imported modules, but it does seem much simpler to just leave the "del" worms neatly packed in the can. It would be possible to allow "del" of local variables only, but I don't see any point to that, so off with its head! Evan Simpson