2 class with same name in different module

I

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 person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
 
L

Leif K-Brooks

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,147
Latest member
CarenSchni
Top