En Fri, 23 May 2008 16:04:43 -0300, davidj411 <[EMAIL PROTECTED]> escribió:
> if you run execfile function to run a python script and that script
> has variables and functions, should't those variable change in the
> interactive prompt too?
Yes, they do:
C:\TEMP>type test.py
a = 123
def foo():
return "hello"
(enter Python)
py> a = "Old value"
py> a
'Old value'
py> execfile("test.py")
py> a
123
py> foo()
'hello'
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
