executing the contents of a file

graham.matthews@maths.anu.edu.au
10 Jan 1995 05:36:07 GMT

Is there some way for a running python program to execute the
contents of a file, similar to "consult" in Prolog. I have a
running program which has instantiated objects a, b, and c and
I would like to load a file F which contains statements like,

a.do_some_action(....)
b.do_some_other_action(...)

I tried to do "from F import *" but this gets one into problems
with identifier visibility.

graham

--
                    Though the days come and go
                     There is one thing I know
                  I've still got the blues for you