Leif Walsh <[EMAIL PROTECTED]> added the comment: There's 'execfile' in Lib/idlelib/PyShell.py...I'm looking for others.
There is also a class of functions 'exec*' (and a related class, 'spawn*') in Lib/os.py that claims to do just what you want, but replacing the current process (or, in spawn*'s case, in a new thread). That said, I agree that exec should handle streams, and if you could give me a heads up as to where the code is for exec(), I could try my hand at a patch. ---------- nosy: +leif.walsh _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3192> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com