[Python-Dev] Criticism of execfile() removal in Python3 (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jun 15 01🔞51 CEST 2014


Fabio Zadrozny wrote:

Well, I must say that the exec(open().read()) is not really a proper execfile implementation because it may fail because of encoding issues...

It's not far off, though -- all it needs is an optional encoding parameter.

-- Greg



More information about the Python-Dev mailing list