Re: Why does interpreter flub

2005-03-01 Thread Steve Holden
[EMAIL PROTECTED] wrote: I have a file named testPython.py as shown below. I have shown a trace of the Interpreter Session in which I import the modules from this file using the command: "from testPython import *" When I do this, and modify a global variable from within a function, it seems that

Re: Why does interpreter flub

2005-03-01 Thread Peter Hansen
[EMAIL PROTECTED] wrote: "from testPython import *" When I do this, and modify a global variable from within a function, it seems that the interpreter is unaware of the updated value! Uh... don't do this then. Beginners to Python should never use the "from xxx import *" form, as this is just one

Why does interpreter flub

2005-03-01 Thread syed_saqib_ali
I have a file named testPython.py as shown below. I have shown a trace of the Interpreter Session in which I import the modules from this file using the command: "from testPython import *" When I do this, and modify a global variable from within a function, it seems that the interpreter is