By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

method override inside a module

P: n/a
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.
May 25 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.