Multiple simultaneous Python interpreters
Thomas Guettler
zopestoller at thomas-guettler.de
Wed Mar 19 06:44:46 EST 2003
White Flame (aka David Holz) schrieb:
> Hi, I'm evaluating Python as a scripting language in a project I'm defining.
> Is there any way to encapsulate the interpreter so that multiple ones can
> exist in a program? Some would be in their own thread, some would get
> called from the same one sequentially. However, in the docs I've read,
> there's always just been one "global" interpreter. Not very OO for an OO
> language.
Hi!
you can call python (e.g. with popen) several times. Each process does
not know of the other interpreters. It does not behave like MS-Word.
thomas
More information about the Python-list
mailing list