Multiple python interpreters within the same process

André andre.roberge at
Sat Jun 9 22:03:09 CEST 2007

On Jun 9, 5:00 pm, "Marcin Kalicinski" <kal... at> 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


More information about the Python-list mailing list