From cdf76b42a02233834e01877712b7e0e64dbc8d6a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 29 Nov 2017 00:25:06 +0100 Subject: [PATCH] bpo-32124: C API preinit doc, change note formatting Format the list of functions that should not be called before Py_Initialize() as a list, rather than a note. --- Doc/c-api/init.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 2f77bb359d24e5..e5eb7245ebe6f9 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -54,12 +54,15 @@ The following functions can be safely called before Python is initialized: * :c:func:`PyMem_RawCalloc` * :c:func:`PyMem_RawFree` -.. note:: - - The following functions **should not be called** before - :c:func:`Py_Initialize`: :c:func:`Py_EncodeLocale`, :c:func:`Py_GetPath`, - :c:func:`Py_GetPrefix`, :c:func:`Py_GetExecPrefix` and - :c:func:`Py_GetProgramFullPath` and :c:func:`Py_GetPythonHome`. +On the contrary, the following functions **should not be called** before +:c:func:`Py_Initialize`: + +* :c:func:`Py_EncodeLocale` +* :c:func:`Py_GetExecPrefix` +* :c:func:`Py_GetPath` +* :c:func:`Py_GetPrefix` +* :c:func:`Py_GetProgramFullPath` +* :c:func:`Py_GetPythonHome` .. _global-conf-vars: