What's so wrong about execfile?
michele.simionato at gmail.com
Sun Mar 1 07:34:47 CET 2009
On Feb 28, 4:21 am, Sammo <sammo2... at gmail.com> wrote:
> Given that execfile has been removed in py3k
execfile has not been really removed, it is just spelled
BTW, from the help message
Help on built-in function exec in module builtins:
exec(object[, globals[, locals]])
Read and execute code from a object, which can be a string, a code
object or a file object.
The globals and locals are dictionaries, defaulting to the current
globals and locals. If only globals is given, locals defaults to
I would have expected
to work too. Any idea why it does not?
More information about the Python-list