NameError: name 'execfile' is not defined

Henrik Bechmann hbechmann at
Thu Mar 12 07:48:56 CET 2009

Newbie issue:

I downloaded (windows
insaller), opened the interpreter, wrote a print "Hello World" program
in, and in the interpreter typed


Got back

NameError: name 'execfile' is not defined

(following tutorial in David Beazley's Python Essential Reference).

Is execfile not supported in 3?


- Henrik

More information about the Python-list mailing list