• Victor Stinner's avatar
    bpo-32030: Add _PyCoreConfig.warnoptions (#4936) · ca719ac4
    Victor Stinner yazdı
    Merge _PyCoreConfig_ReadEnv() into _PyCoreConfig_Read(), and
    _Py_CommandLineDetails usage is now restricted to pymain_cmdline().
    
    Changes:
    
    * _PyCoreConfig: Add nxoption, xoptions, nwarnoption and warnoptions
    * Add _PyCoreConfig.program: argv[0] or ""
    * Move filename, command, module and xoptions from
      _Py_CommandLineDetails to _PyMain. xoptions _Py_OptList becomes
      (int, wchar_t**) list.
    * Add pymain_cmdline() function
    * Rename copy_argv() to copy_wstrlist(). Rename clear_argv() to
      clear_wstrlist(). Remove _Py_OptList structure: use (int,
      wchar_t**) list instead.
    * Rename pymain_set_flag_from_env() to pymain_get_env_flag()
    * Rename pymain_set_flags_from_env() to pymain_get_env_flags()
    * _PyMainInterpreterConfig_Read() now creates the warnoptions from
      _PyCoreConfig.warnoptions
    * Inline pymain_add_warning_dev_mode() and
      pymain_add_warning_bytes_flag() into config_init_warnoptions()
    * Inline pymain_get_program_name() into _PyCoreConfig_Read()
    * _Py_CommandLineDetails: Replace warning_options with nwarnoption
      and warnoptions. Replace env_warning_options with nenv_warnoption
      and env_warnoptions.
    * pymain_warnings_envvar() now has a single implementation for
      Windows and Unix: use config_get_env_var_dup() to also get the
      variable as wchar_t* on Unix.
    ca719ac4
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...