Re: namespace problems

2006-08-25 Thread Terry Reedy
"Kiran" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, I am trying to get the following to work, but cant seem to do > it the way i want to. > > ok, so I come into python and do the following: > x = 1 > > then, i have a file called test.py in which i say: > print x > >

namespace problems

2006-08-25 Thread Kiran
Hi all, I am trying to get the following to work, but cant seem to do it the way i want to. ok, so I come into python and do the following: >>> x = 1 then, i have a file called test.py in which i say: print x Now, after having defined x =1 in the python interpreter, i come in and say: import te

Re: Namespace problems

2006-06-06 Thread Kay Schluehr
Kiran wrote: > Hello All, > I am kind of a beginner to python, but here is the deal. > > I am writing a wxpython Application, in which I have a GUI. This GUI > imports some other modules that I have written, using the format > import mymodule as _MyModule > > Now, this GUI in addition to hav

Re: Namespace problems

2006-06-06 Thread Kiran
I should note that if you use the execfile command in the console, the script runs, but if you import the script, it says it cant find the module -- http://mail.python.org/mailman/listinfo/python-list

Namespace problems

2006-06-06 Thread Kiran
Hello All, I am kind of a beginner to python, but here is the deal. I am writing a wxpython Application, in which I have a GUI. This GUI imports some other modules that I have written, using the format import mymodule as _MyModule Now, this GUI in addition to having all it's bells and whis