[issue3192] exec(open(filename)) doesn't work

Leif Walsh report at bugs.python.org
Tue Jun 24 23:00:51 CEST 2008


Leif Walsh <leif.walsh at gmail.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue3192>
_______________________________________


More information about the Python-bugs-list mailing list