On 5/23/2014 6:27 AM, Adam Funk wrote:

that.  The only thing that really bugs me in Python 3 is that execfile
has been removed (I find it useful for testing things interactively).


The spelling has been changed to exec(open(...).read(), ... . It you use it a lot, add a customized def execfile(filename, ... to your site module or local utils module.

Execfile was a separate statement *only) because exec was a statememt. Once exec was was changed to a function taking arguments, that justification disappeared.

Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to