Closed
Description
Examples of the C API documentation should be updated to use the new PyConfig API, rather than deprecated functions like Py_SetProgramName():
- https://docs.python.org/dev/c-api/intro.html#embedding-python
- https://docs.python.org/dev/extending/extending.html
- https://docs.python.org/dev/extending/embedding.html
In the intro, this paragraph is outdated:
The embedding application can steer the search by calling Py_SetProgramName(file) before calling Py_Initialize(). Note that PYTHONHOME still overrides this and PYTHONPATH is still inserted in front of the standard path. An application that requires total control has to provide its own implementation of Py_GetPath(), Py_GetPrefix(), Py_GetExecPrefix(), and Py_GetProgramFullPath() (all defined in Modules/getpath.c).