I am trying to replace some string with list objects:
# functions in module " my_module_with_functions_1 ":>>my_text1="function1 function2"
from my_module_with_functions_1 import *
from my_module_with_functions_2 import *
my_func1 it's value "function1"
my_func2 it's value "function2"
# functions in module " my_module_with_functions_2 ":
my_func100 it's value "bla bla 1"
my_func200 it's value "bla bla 2"
.........now, we need find and replace functions from module "
my_module_with_functions_1 " and
replace them with functions from module " my_module_with_functions_2
"
with: my_text1.replace(items1,items2)
Result must be:
bla bla 1 bla bla 2>>print my_text1.replace(items1,items2)
Regards,
Vedran