Re: Calling a method from invoking module

2010-10-29 Thread Dave Angel
On 2:59 PM, Chris Rebert wrote: On Thu, Oct 28, 2010 at 8:33 PM, Baskaran Sankaranbaskar...@gmail.com wrote: Sorry for the confusion; fooz(), track() and barz() are all members of their respective classes. I must have missed the self argument while creating the synthetic example. Yeah, I

Calling a method from invoking module

2010-10-28 Thread Baskaran Sankaran
Hi, I have two classes in separate python modules and I need to access some methods of the either classes from the other. They are not in base and derived class relationship. Please see the example below. Foo imports Bar and inside the Foo class it creates a Bar obj and then calls Bar.barz().

Re: Calling a method from invoking module

2010-10-28 Thread Dave Angel
On 2:59 PM, Baskaran Sankaran wrote: Hi, I have two classes in separate python modules and I need to access some methods of the either classes from the other. They are not in base and derived class relationship. Please see the example below. Foo imports Bar and inside the Foo class it creates

Fwd: Calling a method from invoking module

2010-10-28 Thread Baskaran Sankaran
Sorry for the confusion; fooz(), track() and barz() are all members of their respective classes. I must have missed the self argument while creating the synthetic example. Yeah, I realize the mutual import is a bad idea. So, if I merge them into a single module (but still retaining the two

Re: Calling a method from invoking module

2010-10-28 Thread Chris Rebert
On Thu, Oct 28, 2010 at 8:33 PM, Baskaran Sankaran baskar...@gmail.com wrote: Sorry for the confusion; fooz(), track() and barz() are all members of their respective classes. I must have missed the self argument while creating the synthetic example. Yeah, I realize the mutual import is a bad