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

Paul Moore p.f.moore at gmail.com
Tue Jun 10 10:41:16 CEST 2014


On 10 June 2014 08:36, Nick Coghlan <ncoghlan at gmail.com> wrote:
> The standard implementation of run_path reads the whole file into
> memory, but MicroPython would be free to optimise that and do
> statement by statement execution instead (while that will pose some
> challenges in terms of handling encoding cookies, future imports, etc
> correctly, it's certainly feasible).

... and if they did optimise that way, I would imagine that the patch
would be a useful contribution back to the core Python stdlib, rather
than remaining a MicroPython-specific optimisation.

Paul


More information about the Python-Dev mailing list