execfile return values

Terry Reedy tjreedy at udel.edu
Fri Oct 3 10:19:10 EDT 2003


"Enrique" <enrique.palomo at xgs-spain.com> wrote in message
news:mailman.1065180983.27200.python-list at python.org...
'''
##ex.py###
a=execfile('scr.py')
print "return value: ", a

##scr.py###
print "i'm scr.py"

Executing that, a takes  None value.
'''
As documented in Lib Ref 2.1 Built-in Functions.  If you have not read
the execfile doc, please do, or reread.  If you have read (or reread),
tell us what part you do not understand.

>Is there a way to handle the execution of the script ordered by the
execfile statement??

I do not understand 'handle the execution of'.  What you are trying to
accomplish that did not happen?

Terry J. Reedy






More information about the Python-list mailing list