[C++-sig] Duplicate registration of to-Python converters

David Abrahams dave at boost-consulting.com
Fri Mar 23 14:32:12 CET 2007

on Fri Mar 23 2007, Pertti Kellomäki <pk-AT-cs.tut.fi> wrote:

> So what is the correct way to use Boost.Python in an embedded
> setting? Is it safe to call Py_Initialize() once, then run scripts
> using PyRun_SimpleFile(), and at the end just let exit() reclaim
> the resources held by the Python interpreter?

On most OSes the process' resource are automatically reclaimed upon
exit, and there, it's definitely safe.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list