rexec questions
Alex
new_name at mit.edu
Fri Aug 3 15:59:07 EDT 2001
Try doing something embarrassing with it:
>>> import rexec
>>> rexec.RExec().r_exec("import popen2; popen2.os.execvp('echo', ('foo',))")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/mit/python/arch/i386_linux22/lib/python2.1/rexec.py", line 264, in r_exec
exec code in m.__dict__
File "<string>", line 1, in ?
File "/mit/python/arch/i386_linux22/lib/python2.1/os.py", line 291, in execvp
_execvpe(file, args)
File "/mit/python/arch/i386_linux22/lib/python2.1/os.py", line 310, in _execvpe
func = execv
NameError: global name 'execv' is not defined
>>>
I think in this context, 'ok_builtin_modules' means modules statically
linked into python. In that case, 'os' isn't a builtin module.
Alex.
More information about the Python-list
mailing list