468,287 Members | 2,000 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,287 developers. It's quick & easy.

method override inside a module

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
0 821

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Allan Streib | last post: by
reply views Thread by Nick Coghlan | last post: by
15 posts views Thread by Nick Coghlan | last post: by
4 posts views Thread by fivestars | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.