Title: Py_Initialize documentation wrong
Type: Stage:
Components: Documentation Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Jim.Jewett, docs@python
Priority: normal Keywords:

Created on 2017-09-14 16:31 by Jim.Jewett, last changed 2017-09-14 16:31 by Jim.Jewett.

Messages (1)
msg302179 - (view) Author: Jim Jewett (Jim.Jewett) (Python triager) Date: 2017-09-14 16:31
Per Py_Initialize() "should be called before using any other Python/C API functions; with the exception of Py_SetProgramName(), Py_SetPythonHome() and Py_SetPath()."

(1)  I suspect that should be either Py_Initialize() or Py_InitializeEx().

(2)  Other functions can also be called first.  The ones I notice are:
(2a)  Py_IsInitialized() wouldn't be useful if you couldn't call it first.
(2b)  Py_SetStandardStreamEncoding explicitly says it *should* be called before Py_Initialize, if it is called at all.

(Probably applies to earlier python versions as well.)
Date User Action Args
2017-09-14 16:31:02Jim.Jewettcreate