[C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment · Issue #93103 · python/cpython
Comments
vstinner
changed the title
[C API] Deprecated Global Configuration Variables like Py_IgnoreEnvironment
[C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment
This was referenced
May 23, 2022vstinner added a commit to vstinner/cpython that referenced this issue
May 23, 2022vstinner added a commit to vstinner/cpython that referenced this issue
May 23, 2022vstinner added a commit that referenced this issue
May 23, 2022vstinner added a commit that referenced this issue
May 23, 2022vstinner added a commit to vstinner/cpython that referenced this issue
May 24, 2022vstinner added a commit that referenced this issue
May 24, 2022…93106) * Replace deprecated Py_DebugFlag with PyConfig.parser_debug in the parser. * Add Parser.debug member. * Add tok_state.debug member. * Py_FrozenMain(): Replace Py_VerboseFlag with PyConfig.verbose.
vstinner added a commit to vstinner/cpython that referenced this issue
May 24, 2022vstinner added a commit that referenced this issue
May 24, 2022vstinner added a commit to vstinner/cpython that referenced this issue
May 24, 2022The Py_DecodeLocale() and Py_EncodeLocale() now use _PyRuntime.preconfig, rather than Py_UTF8Mode and Py_LegacyWindowsFSEncodingFlag global configuration varibles, to decide if the UTF-8 encoding is used or not. As documented, these functions must not be called before Python is preinitialized. The new PyConfig API should now be used, rather than using deprecated functions like Py_SetPath() or PySys_SetArgv().
vstinner added a commit that referenced this issue
May 24, 2022The Py_DecodeLocale() and Py_EncodeLocale() now use _PyRuntime.preconfig, rather than Py_UTF8Mode and Py_LegacyWindowsFSEncodingFlag global configuration varibles, to decide if the UTF-8 encoding is used or not. As documented, these functions must not be called before Python is preinitialized. The new PyConfig API should now be used, rather than using deprecated functions like Py_SetPath() or PySys_SetArgv().
vstinner added a commit to vstinner/cpython that referenced this issue
Aug 18, 2022vstinner added a commit that referenced this issue
Aug 18, 2022tiran pushed a commit to tiran/cpython that referenced this issue
Aug 19, 2022…#96070) The C API documentation now uses the new PyConfig API, rather than deprecated global configuration variables.