method override inside a module

F

Fabrizio Pollastri

Hello,
I am trying to override a method of a class defined into an imported
module, but keeping intact the namespace of the imported module.

For example, let suppose

import module_X

and in module_X is defined something like

class A:

...

def method_1():
...

...

I wish to override method_1 with a new function and to call the
overrided method inside my application with the same name of the
original method like

...
module_X.method_1()
...

Thanks in advance for any help.


Regards,
F. Pollastri.
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top