2 ms·
That requires making the native parts of the stdlib position independent (relocatable). I don't know what obstacles are there currently, but basically you'd nee
by pas 8y ago
That requires making the native parts of the stdlib position independent (relocatable). I don't know what obstacles are there currently, but basically you'd need to have a runtime linker that gives a reference to the loaded object/module to access the symbols, but these are usually handled by the C compiler and linker. So it's doable, just a lot of effort.
- loeg 7y agoTheoretically, if this proposal lands, all of the Python stdlib will have to be fixed not to have global state — the main concern would be 3rd party C libraries, I think.