[C++-sig] Re: boost:python:embedding
Dirk Gerrits
dirk at gerrits.homeip.net
Sat May 3 18:18:12 CEST 2003
David Abrahams wrote:
> Mattias Karlsson <mattias.karlsson at front.com> writes:
>
>>Hi
>>
>>I embed Python in a c++ application using Paul Dubois CXX stuff. Lately I've
>>been looking into Boost:Python. Your library seems to be alive and updated
>>frequently. So I thought it might be nice to use. Do you have any plans to
>>release something that makes embedding more easy ?
>
>
> What did you have in mind?
I don't know what Mattias has in mind, but I personally use a home-made
boost::python::interpreter class. (See attachments.) I would really love
to see it in Boost.Python but perhaps it is not "up to Boost standards"
at this point? It ignores things like multiple interpreters, the GIL,
multithreading, code that already uses Py_Initialize, and perhaps more.
I haven't looked into any of these because I don't have to worry about
them in my code. (YAGNI and all that. ;))
There have been previous discussions about something like this. Others
have rolled their own solutions, probably more advanced than mine, but I
don't believe anyone has stepped up to get something into the library.
Regards,
Dirk Gerrits
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: interpreter.hpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030503/e05e1c36/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: interpreter.cpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030503/e05e1c36/attachment-0001.txt>
More information about the Cplusplus-sig
mailing list