[issue5524] execfile() removed from Python3

"Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za "Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za
Fri Mar 20 06:56:23 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

-1. There is a much simpler solution to the problem: use exec(open(fn,
"rb").read())

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5524>
_______________________________________


More information about the Python-bugs-list mailing list