[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
[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
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