Re: cannot find object instance

2008-08-28 Thread jimgardener
On Aug 28, 9:35 pm, Bruno Desthuilliers wrote: Such a ping-pong between two classes is more often > than not a design smell. thanks Bruno,i understand my mistake..should have figured it out myself thanks again jim -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot find object instance

2008-08-28 Thread Marc 'BlackJack' Rintsch
On Thu, 28 Aug 2008 08:35:07 -0700, jimgardener wrote: > moduleA.py > > import moduleB > > […] > > moduleB.py > -- > import moduleA > > […] Don't do that. Circular imports are a code smell. If two modules are coupled that tight it's usually a sign that yo

Re: cannot find object instance

2008-08-28 Thread Bruno Desthuilliers
jimgardener a écrit : hi, i am a python newbie.. From what I can see from your code, you're a newbie to programming in general... while trying out some message passing between two object instances i came across a problem First point : you have both a circular dependency between ModuleA an

cannot find object instance

2008-08-28 Thread jimgardener
hi, i am a python newbie..while trying out some message passing between two object instances i came across a problem moduleA.py import moduleB class MyClassA: def __init__(self): self.age=0 self.address='' def createClassB(self): self.objB=module