diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-04 16:34:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:34:34 (GMT) |
commit | af1d64d9f7a7cf673279725fdbaf4adcca51d41f (patch) | |
tree | 03baffe8b044cbbb2c73542bccddad0d9a97c82e /Modules | |
parent | 58ca33b4674f39189b03c9a39fa7b676b43b3d08 (diff) | |
download | cpython-af1d64d9f7a7cf673279725fdbaf4adcca51d41f.zip cpython-af1d64d9f7a7cf673279725fdbaf4adcca51d41f.tar.gz cpython-af1d64d9f7a7cf673279725fdbaf4adcca51d41f.tar.bz2 |
bpo-42260: Main init modify sys.flags in-place (GH-23150)
When Py_Initialize() is called twice, the second call now updates
more sys attributes for the configuration, rather than only sys.argv.
* Rename _PySys_InitMain() to _PySys_UpdateConfig().
* _PySys_UpdateConfig() now modifies sys.flags in-place, instead of
creating a new flags object.
* Remove old commented sys.flags flags (unbuffered and skip_first).
* Add private _PySys_GetObject() function.
* When Py_Initialize(), Py_InitializeFromConfig() and
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions