Skip to content

bpo-34170: Add _PyCoreConfig.bytes_warning#8447

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:remove_cmdline
Jul 24, 2018
Merged

bpo-34170: Add _PyCoreConfig.bytes_warning#8447
vstinner merged 2 commits intopython:masterfrom
vstinner:remove_cmdline

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 24, 2018

Add more fields to _PyCoreConfig:

  • _check_hash_pycs_mode
  • bytes_warning
  • debug
  • inspect
  • interactive
  • legacy_windows_fs_encoding
  • legacy_windows_stdio
  • optimization_level
  • quiet
  • unbuffered_stdio
  • user_site_directory
  • verbose
  • write_bytecode

Changes:

  • Remove pymain_get_global_config() and pymain_set_global_config()
    which became useless. These functions have been replaced by
    _PyCoreConfig_GetGlobalConfig() and
    _PyCoreConfig_SetGlobalConfig().
  • sys.flags.dont_write_bytecode value is now restricted to 1 even if
    -B option is specified multiple times on the command line.
  • PyThreadState_Clear() now uses the config from the current
    interpreter rather than using global Py_VerboseFlag

https://bugs.python.org/issue34170

Add more fields to _PyCoreConfig:

* _check_hash_pycs_mode
* bytes_warning
* debug
* inspect
* interactive
* legacy_windows_fs_encoding
* legacy_windows_stdio
* optimization_level
* quiet
* unbuffered_stdio
* user_site_directory
* verbose
* write_bytecode

Changes:

* Remove pymain_get_global_config() and pymain_set_global_config()
  which became useless. These functions have been replaced by
  _PyCoreConfig_GetGlobalConfig() and
  _PyCoreConfig_SetGlobalConfig().
* sys.flags.dont_write_bytecode value is now restricted to 1 even if
  -B option is specified multiple times on the command line.
* PyThreadState_Clear() now uses the config from the current
  interpreter rather than using global Py_VerboseFlag
@vstinner
Copy link
Member Author

cc @emilyemorehouse

@vstinner
Copy link
Member Author

Oops, I didn't want to bug @markshannon :-)

@vstinner vstinner merged commit 53b7d4e into python:master Jul 24, 2018
@vstinner vstinner deleted the remove_cmdline branch July 24, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants