• Victor Stinner's avatar
    bpo-32030: _PyPathConfig_Init() sets home and program_name (#4673) · af5a8950
    Victor Stinner yazdı
    _PyPathConfig_Init() now also initialize home and program_name:
    
    * Rename existing _PyPathConfig_Init() to _PyPathConfig_Calculate().
      Add a new _PyPathConfig_Init() function in pathconfig.c which
      handles the _Py_path_config variable and call
      _PyPathConfig_Calculate().
    * Add home and program_name fields to _PyPathConfig.home
    * _PyPathConfig_Init() now initialize home and program_name
      from main_config
    * Py_SetProgramName(), Py_SetPythonHome() and Py_GetPythonHome() now
      calls Py_FatalError() on failure, instead of silently ignoring
      failures.
    * config_init_home() now gets directly _Py_path_config.home to only
      get the value set by Py_SetPythonHome(), or NULL if
      Py_SetPythonHome() was not called.
    * config_get_program_name() now gets directly
      _Py_path_config.program_name to only get the value set by
      Py_SetProgramName(), or NULL if Py_SetProgramName() was not called.
    * pymain_init_python() doesn't call Py_SetProgramName() anymore,
      _PyPathConfig_Init() now always sets the program name
    * Call _PyMainInterpreterConfig_Read() in
      pymain_parse_cmdline_envvars_impl() to control the memory allocator
    * C API documentation: it's no more safe to call Py_GetProgramName()
      before Py_Initialize().
    af5a8950
Adı
Son kayıt (commit)
Son güncelleme
..
bdist_wininst Loading commit data...
clinic Loading commit data...
external Loading commit data...
icons Loading commit data...
WinMain.c Loading commit data...
_findvs.cpp Loading commit data...
_msi.c Loading commit data...
_testconsole.c Loading commit data...
config.c Loading commit data...
dl_nt.c Loading commit data...
dllbase_nt.txt Loading commit data...
empty.c Loading commit data...
errmap.h Loading commit data...
errmap.mak Loading commit data...
frozen_dllmain.c Loading commit data...
generrmap.c Loading commit data...
getpathp.c Loading commit data...
invalid_parameter_handler.c Loading commit data...
launcher.c Loading commit data...
msvcrtmodule.c Loading commit data...
pyconfig.h Loading commit data...
pylauncher.rc Loading commit data...
pyshellext.cpp Loading commit data...
pyshellext.def Loading commit data...
pyshellext.idl Loading commit data...
pyshellext.rc Loading commit data...
pyshellext_d.def Loading commit data...
python.manifest Loading commit data...
python3.def Loading commit data...
python3dll.c Loading commit data...
python_exe.rc Loading commit data...
python_nt.rc Loading commit data...
python_ver_rc.h Loading commit data...
pythonw_exe.rc Loading commit data...
readme.txt Loading commit data...
sqlite3.rc Loading commit data...
testpy.py Loading commit data...
validate_ucrtbase.py Loading commit data...
winreg.c Loading commit data...
winsound.c Loading commit data...