Multiple simultaneous Python interpreters
aahz at pythoncraft.com
Wed Mar 19 22:19:18 CET 2003
In article <b5aja4$1rt$1 at barad-dur.nas.com>,
White Flame \(aka David Holz\) <whiteflame52 at y.a.h.o.o.com> wrote:
>"Peter Hansen" <peter at engcorp.com> wrote in message
>news:3E78C112.48015ABE at engcorp.com...
>> Perhaps you're overestimating your need for independence in the multiple
>> instances? Have you considered whether that's absolutely necessary for
>> your design?
>Yes, it is absolutely necessary. Independence is crucial for the
>ability to kill off and clean up a runaway script (ie, one that is
>adding elements to a dictionary in an infinite loop) without taking
>down the application or other simultaneously running scripts. Plus,
>various interpreters should have different import functionality
>available to them, giving various "sandbox" models. These are 2
>fundamental points to the design.
Then you definitely want multiple processes. It's too easy to hang a
Python interpreter with unsafe code.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Register for PyCon now! http://www.python.org/pycon/reg.html
More information about the Python-list