[issue13533] Would like Py_Initialize to play friendly with host app

STINNER Victor report at bugs.python.org
Mon May 27 10:45:29 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

> I'm building a dll add-in (on Windows) in which I want to use the installed version of Python, not provide my own installation. When py_initialize fails it appears to call exit(). (...)

This issue has been fixed by the PEP 587 in bpo-36763: Py_InitializeFromConfig() now returns a PyStatus structure which is a success, error message or an exit code. The caller can decide how to handle it.

----------
nosy: +vstinner
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13533>
_______________________________________


More information about the Python-bugs-list mailing list