]> granicus.if.org Git - python/commit
bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532)
authorVictor Stinner <vstinner@redhat.com>
Fri, 16 Nov 2018 10:55:35 +0000 (11:55 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Nov 2018 10:55:35 +0000 (11:55 +0100)
commit37cd982df02795905886ab36a2378ed557cb6f60
treeaa750eca7acb660a0d3156fd7820396c2dff2f4c
parentb65413b497a07f521d835b799be7dd0afcedbd65
bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532)

* The _PySys_EndInit() function now copies the
  config->module_search_path list, so config is longer modified when
  sys.path is updated.
* config->warnoptions list and config->xoptions dict are also copied
* test_embed: InitConfigTests now also tests
  main_config['module_search_path']
* Fix _Py_InitializeMainInterpreter(): don't use config->warnoptions
   but sys.warnoptions to decide if the warnings module should
   be imported at startup.
Lib/test/test_embed.py
Python/pylifecycle.c
Python/sysmodule.c