Re: 2 class with same name in different module

2005-10-05 Thread Fredrik Lundh
> thats a syntax error; I assume you meant message = message.replace( "a syntax error", "almost always an import error (no module named py)" ) -- http://mail.python.org/mailman/listinfo/python-list

Re: 2 class with same name in different module

2005-10-05 Thread Fredrik Lundh
"Iyer, Prasad C" wrote: > I have a class in a module which is getting imported in main module. > How do you differentiate between the 2 class if you have one class in a module, why do you need to differentiate between it? assuming that you do in fact have *two* classes with the same name in two

Re: 2 class with same name in different module

2005-10-05 Thread Leif K-Brooks
Iyer, Prasad C wrote: > I have a class in a module which is getting imported in main module. > How do you differentiate between the 2 class import foo import bar foo.TheClass().dostuff() bar.TheClass().dostuff() -- http://mail.python.org/mailman/listinfo/python-list

2 class with same name in different module

2005-10-05 Thread Iyer, Prasad C
I have a class in a module which is getting imported in main module. How do you differentiate between the 2 class regards prasad chandrasekaran This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the p