Module question

Tuvas tuvas21 at gmail.com
Wed Feb 22 21:23:09 EST 2006


Ahhh. Actually, I realized my problem was the fact that not everything
had been loaded yet. Circular loading can be a bit difficult I can
see... I guess I need to import the new module after x has been
declared? Ei, I need this.

Mod1.py
x=1
from mod2.py import *
=================
Mod2.py
from mod1.py import x

Will this work right? Thanks!




More information about the Python-list mailing list