mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-32197: Try to fix a compiler error on OS X introduced in bpo-32030. (#4681)
* Revert "bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673)" This reverts commitaf5a895073
. * Revert "bpo-32030: Fix config_get_program_name() on macOS (#4669)" This reverts commite23c06e2b0
. * Revert "bpo-32030: Add Python/pathconfig.c (#4668)" This reverts commit0ea395ae96
. * Revert "bpo-32030: Don't call _PyPathConfig_Fini() in Py_FinalizeEx() (#4667)" This reverts commitebac19dad6
. * Revert "bpo-32030: Fix Py_GetPath(): init program_name (#4665)" This reverts commit9ac3d88827
.
This commit is contained in:
parent
af5a895073
commit
13badcbc60
12 changed files with 426 additions and 457 deletions
|
@ -40,6 +40,7 @@ The following functions can be safely called before Python is initialized:
|
|||
* :c:func:`Py_GetCompiler`
|
||||
* :c:func:`Py_GetCopyright`
|
||||
* :c:func:`Py_GetPlatform`
|
||||
* :c:func:`Py_GetProgramName`
|
||||
* :c:func:`Py_GetVersion`
|
||||
|
||||
* Utilities:
|
||||
|
@ -58,8 +59,8 @@ The following functions can be safely called before Python is initialized:
|
|||
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`,
|
||||
:c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome`,
|
||||
:c:func:`Py_GetProgramName` and :c:func:`PyEval_InitThreads`.
|
||||
:c:func:`Py_GetProgramFullPath`, :c:func:`Py_GetPythonHome` and
|
||||
:c:func:`PyEval_InitThreads`.
|
||||
|
||||
|
||||
.. _global-conf-vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue