New GitHub issue #93103 from vstinner:<br>

<hr>

<pre>
PEP 587 "Python Initialization Configuration" got implemented in Python 3.8: https://peps.python.org/pep-0587/ It adds a new PyConfig API which is more complete and reliable than the legacy API to initialize Python: Py_Initialize() with a scattered collection of global variables and some "Set" functions like Py_SetPath().

In Python 3.11, I deprecated functions like Py_SetPath() and Py_SetStandardStreamEncoding(): https://docs.python.org/dev/c-api/init.html#c.Py_SetPath

I now propose to deprecate global configuration variables like Py_IgnoreEnvironment: PyConfig members should be used instead.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/93103">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>