As I understand it, in python (CPython) there are two types of modules: - extension .so (C) -.py
.so are loaded only once, even when there are different processes / interpreters importing them.
.py is loaded once for each process / interpreter (unless explicitly loaded).
Is there a way .py can be used by multiple processes / interpreters?
Someone will need another layer where you can save the changes made to the module. I think you can embed an interpreter in .so as a first step. Is there an already developed solution.
I admit that I can be very far in terms of possible ideas about this. Please excuse my ignorance.
source
share