Multiple simultaneous Python interpreters

Aahz aahz at
Wed Mar 19 22:19:18 CET 2003

In article <b5aja4$1rt$1 at>,
White Flame \(aka David Holz\) <whiteflame52 at> wrote:
>"Peter Hansen" <peter at> wrote in message
>news:3E78C112.48015ABE at
>> 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           <*>

Register for PyCon now!

More information about the Python-list mailing list