[Fwd: Re: Embedding Multiplr Python interpreter in C++]

Steve Holden steve at holdenweb.com
Fri Jan 14 09:42:03 EST 2005


Yogesh Sharma <ysharma at catprosystems.com> wrote:
 > one more question to add:
 > Is there a way to have 2 local copies of python interpreter ?
 >
 > Yogesh Sharma wrote:
 >> Hi,
 >>
 >> I have following setup:
 >> OS Linux Fedora Core 3
 >> Python 2.3.4
 >>
 >> How can I embed two python interpreters in one C++ program ?
 >>
 >> Thanks
 >


Take a look at mod_python's code: that allows several independent 
interpreters in the same Apache process using Py_NewInterpreter(), which 
may well be what you want - initially, see

 
http://www.modpython.org/live/mod_python-3.1.3/doc-html/pyapi-interps.html

regards
  Steve
-- 
Steve Holden               http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC      +1 703 861 4237  +1 800 494 3119




More information about the Python-list mailing list