[python] Py_Finalize(): To call, or not to call?
Hi, I remember reading in the boost documentation a while back that Py_Finalize() should not be called when using Boost.Python to embed or extend python. I cannot find that documentation again, unfortunately. Is this a true statement or is it safe to call Py_Finalize()? If not, why can this not be called? How does Boost.Python handle finalizing the interpreter? Thanks.
On Fri, Mar 21, 2008 at 12:15 PM, Robert Dailey <rcdailey@gmail.com> wrote:
Hi,
I remember reading in the boost documentation a while back that Py_Finalize() should not be called when using Boost.Python to embed or extend python. I cannot find that documentation again, unfortunately. Is this a true statement or is it safe to call Py_Finalize()? If not, why can this not be called? How does Boost.Python handle finalizing the interpreter?
Thanks.
*bump* Still seeking a response on this matter. Thank you.
Visit this link: http://www.boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html Read the 'notes' section under "Getting Started". On Tue, Mar 25, 2008 at 6:38 AM, Per Ghosh <per@gorep.se> wrote:
You should call it!
http://docs.python.org/api/initialization.html
Robert Dailey skrev:
Hi,
I remember reading in the boost documentation a while back that Py_Finalize() should not be called when using Boost.Python to embed or extend python. I cannot find that documentation again, unfortunately. Is this a true statement or is it safe to call Py_Finalize()? If not, why can this not be called? How does Boost.Python handle finalizing the interpreter?
Thanks.
------------------------------
_______________________________________________ Boost-users mailing listBoost-users@lists.boost.orghttp://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Per Ghosh
-
Robert Dailey