Overriding module's class

Pavel Skvazh pavel.skvazh at gmail.com
Thu Dec 3 17:56:55 EST 2009


Is it possible to override a class in the module or the module itself
that is imported across the project to add new methods to it?

For example I've got

module 'a' with class A

from a import A

but I don't want to add a method to that A class not just in this
unit, but across the project, so everywhere I'll import class A - it
would be a modified one.

Thank you.



More information about the Python-list mailing list