Global variables in different moduls
jb
egrossde at yahoo.de
Sun May 5 13:44:52 EDT 2002
I have a module globals.py, where I store som global variables, for example
the variable <x>. So the first line of globals.py is
x = None
The module globals.h is imported in the module main.py and other.py (and in
several other modules).
Now when the main program starts in main.py, the first statement is
x=3
but later in other.py <x> still has the value None. Am I making a mistake
somewhere or is this normal?
--
Janos Blazi
Il n'y a guère dans la vie qu'une préoccupation grave: c'est la mort;
(Dumas)
-----------== Posted via Newsfeeds.Com - Uncensored Usenet News ==----------
http://www.newsfeeds.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Ulimited Fast Downloads - 19 Servers =-----
More information about the Python-list
mailing list