[Python-ideas] Isolated (?transactional) exec (?subinterpreter) calls
simon.sapin at kozea.fr
Fri Jun 8 17:52:44 CEST 2012
Le 08/06/2012 15:00, Amaury Forgeot d'Arc a écrit :
> It would be a really interesting feature, but seems very difficult to
> Do you have the slightest idea how this would work?
> What about global state, environment variables, threads, and all kinds
> of side-effects?
> Or are you thinking about a solution based on the multiprocessing module?
Without any kind an guarantee about side-effects, one could start by
making shallow or deep copies of the namespaces passed to exec.
More information about the Python-ideas