[C++-sig] Duplicate registration of to-Python converters
David Abrahams
dave at boost-consulting.com
Thu Mar 22 21:30:55 CET 2007
on Thu Mar 22 2007, Pertti Kellomäki <pk-AT-cs.tut.fi> wrote:
> David Abrahams wrote:
>> Boost.Python doesn't support Py_Finalize() yet.
>
> Does this mean that it is not safe to follow the "Getting
> Started" outline at:
> <http://www.boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html>
Apparently not. I don't remember who wrote that part, but it's
definitely wrong to suggest you can do it with Boost.Python.
> If so, is there a workaround if one wants to repeatedly
> run Python programs in a fresh environment?
Not that I know of.
> I am able to run Python code with repeated sequences of
>
> Py_Initialize()
> PyRun_SimpleFile()
> Py_Finalize()
>
> so am I just being lucky that the ill effects have not
> surfaced? This is on Ubuntu, g++ 4.1.2, Boost 1.33.1
Probably, yes, you've gotten lucky.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list