so I am using a third party python module I installed.
I initiate it like so:
from module import SomeClass
sc = SomeClass()
sc.process(text);
process()
is using another method from another class in the same module called get_Text()
I want to modify the get_Text()
method to return a modified string.
so sc.process(text)
would return a different result than what it used to.
Do I use monkey patching? how would it work here? Do I copy paste the get_text()
method and modify it and patch it at run time?