Multiple python interpreters within the same process

André andre.roberge at gmail.com
Sat Jun 9 16:03:09 EDT 2007


On Jun 9, 5:00 pm, "Marcin Kalicinski" <kal... at poczta.onet.pl> wrote:
> How do I use multiple Python interpreters within the same process?
>
> I know there's a function Py_NewInterpreter. However, how do I use functions
> like Py_RunString etc. with it? They don't take any arguments that would
> tell on which interpreter to run the string...?
>
> Marcin

You may want to look at the code module http://docs.python.org/lib/module-code.html

André




More information about the Python-list mailing list