I filed <a href="http://bugs.python.org/issue16370">http://bugs.python.org/issue16370</a> for this one.<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 12:02 AM, Tom Epperly <span dir="ltr"><<a href="mailto:epperly2@llnl.gov" target="_blank">epperly2@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Regarding this section, <a href="http://docs.python.org/extending/embedding.html#very-high-level-embedding" target="_blank">http://docs.python.org/<u></u>extending/embedding.html#very-<u></u>high-level-embedding</a>, according to <a href="http://docs.python.org/c-api/init.html" target="_blank">http://docs.python.org/c-api/<u></u>init.html</a> Py_SetProgramName() should be called before Py_Initialize() (see the comment for Py_SetProgramName()). This matters for the particular case of Mac OS X (see <a href="http://mail.python.org/pipermail/pythonmac-sig/2012-October/023746.html" target="_blank">http://mail.python.org/<u></u>pipermail/pythonmac-sig/2012-<u></u>October/023746.html</a>).<br>

<br>
I recommend adding a Py_SetProgramName() to the example.<br>
<br>
Regards,<br>
<br>
Tom Epperly<br>
______________________________<u></u>_________________<br>
docs mailing list<br>
<a href="mailto:docs@python.org" target="_blank">docs@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/docs" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/docs</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Andrew Svetlov<br>
</div>