Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 20, 2019

  • Add config parameter to _PyCoreConfig_DecodeLocaleErr(): pass
    config->argv to _Py_PreInitializeFromPyArgv((), to respect command
    line arguments.
  • Fix _Py_PreInitializeFromCoreConfig(): don't pass args to
    _Py_PreInitializeFromPyArgv() if config.parse_argv=0.
  • Use "char * const *" and "wchar_t * const *" types for 'argv'
    parameters and _PyArgv.argv.
  • Add config parameter to _PyCoreConfig_SetString().
  • Add unit test on preinitialization from argv.

https://bugs.python.org/issue36763

* Add _PyPreConfig.parse_argv
* Add _PyCoreConfig._config_init field and _PyCoreConfigInitEnum enum
  type
* Initialization functions: reject preconfig=NULL and config=NULL
* Add config parameter to _PyCoreConfig_DecodeLocaleErr(): pass
  config->argv to _Py_PreInitializeFromPyArgv(), to parse config
  command line arguments in preinitialization.
* Add config parameter to _PyCoreConfig_SetString(). It now
  preinitializes Python.
* _PyCoreConfig_SetPyArgv() now also preinitializes Python for wide
  argv
* Fix _Py_PreInitializeFromCoreConfig(): don't pass args to
  _Py_PreInitializeFromPyArgv() if config.parse_argv=0.
* Use "char * const *" and "wchar_t * const *" types for 'argv'
  parameters and _PyArgv.argv.
* Add unit test on preinitialization from argv.
* _PyPreConfig.allocator type becomes int
* Add _PyPreConfig_InitFromPreConfig() and
  _PyPreConfig_InitFromCoreConfig() helper functions
@vstinner vstinner merged commit 6d1c467 into python:master May 20, 2019
@vstinner vstinner deleted the config_preinit branch May 20, 2019 09:02
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