Execute in a multiprocessing child dynamic code loaded by the parent process
Martin Di Paola
martinp.dipaola at gmail.com
Tue Mar 8 09:50:23 EST 2022
>Then, you must put the initialization (dynamically loading the modules)
>into the function executed in the foreign process.
>
>You could wrap the payload function into a class instances to achieve this.
>In the foreign process, you call the instance which first performs
>the initialization and then executes the payload.
That's what I have in mind: loading the modules first, and then unpickle
and call the real target function.
More information about the Python-list
mailing list