Hallo,
habe zwei Module die sich gegenseitig importieren.:
test1.py:
from test2 import test2
#import test2
class test1():
def __init__(self):
self.tmp1 = 2
self.tmp2 = 3
def function1(self):
print self.tmp1
_tmp = test2()
print _tmp.tmp1
def main():
_tmp=test1()
_tmp.function1()
if ...
Die Suche ergab 1 Treffer
- Mittwoch 2. Juli 2008, 09:39
- Forum: Allgemeine Fragen
- Thema: (Gegenseitiges) Import Problem
- Antworten: 3
- Zugriffe: 1480
