[C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment · Issue #93103 · python/cpython

Comments

@vstinner

@vstinner vstinner changed the title [C API] Deprecated Global Configuration Variables like Py_IgnoreEnvironment [C API] Deprecate Global Configuration Variables like Py_IgnoreEnvironment

May 23, 2022

This was referenced

May 23, 2022

vstinner added a commit to vstinner/cpython that referenced this issue

May 23, 2022
Update documentation of PyUnicode_DecodeFSDefault(),
PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault():
they now use the filesystem encoding and error handler of PyConfig,
Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
variables are no longer used.

vstinner added a commit to vstinner/cpython that referenced this issue

May 23, 2022
Deprecate global configuration variables, like
Py_IgnoreEnvironmentFlag, in the documentation: the
Py_InitializeFromConfig() API should be instead.

vstinner added a commit that referenced this issue

May 23, 2022
Deprecate global configuration variables, like
Py_IgnoreEnvironmentFlag, in the documentation: the
Py_InitializeFromConfig() API should be instead.

vstinner added a commit that referenced this issue

May 23, 2022
Update documentation of PyUnicode_DecodeFSDefault(),
PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault():
they now use the filesystem encoding and error handler of PyConfig,
Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
variables are no longer used.

vstinner added a commit to vstinner/cpython that referenced this issue

May 24, 2022
…Flag

* 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 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, 2022
Document that -d option and PYTHONDEBUG env var requires a debug
build of Python. Also mention them in the debug build documentation.

vstinner added a commit that referenced this issue

May 24, 2022
Document that -d option and PYTHONDEBUG env var require a debug
build of Python. Also mention them in the debug build documentation.

vstinner added a commit to vstinner/cpython that referenced this issue

May 24, 2022
The 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, 2022
The 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, 2022
The C API documentation now uses the new PyConfig API, rather than
deprecated global configuration variables.

vstinner added a commit that referenced this issue

Aug 18, 2022
The C API documentation now uses the new PyConfig API, rather than
deprecated global configuration variables.

tiran 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.