2 class with same name in different module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Iyer, Prasad C

    #1

    2 class with same name in different module


    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 confidentialand is the property of the Capgemini Group. It is intended only for theperson 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 thismessage in error, please notify the sender immediately and delete all copies of this message.

  • Leif K-Brooks

    #2
    Re: 2 class with same name in different module

    Iyer, Prasad C wrote:[color=blue]
    > I have a class in a module which is getting imported in main module.
    > How do you differentiate between the 2 class[/color]

    import foo
    import bar

    foo.TheClass(). dostuff()
    bar.TheClass(). dostuff()

    Comment

    Working...