Browse Source
bpo-31845: Fix reading flags from environment (GH-4105)
bpo-31845: Fix reading flags from environment (GH-4105)
The startup refactoring means command line settings are now applied after settings are read from the environment. This updates the way command line settings are applied to account for that, ensures more settings are first read from the environment in _PyInitializeCore, and adds a simple test case covering the flags that are easy to check.pull/2400/merge
committed by
GitHub
4 changed files with 82 additions and 45 deletions
-
35Lib/test/test_cmd_line.py
-
1Misc/NEWS.d/next/Core and Builtins/2017-10-24-21-27-32.bpo-31845.8OS-k3.rst
-
54Modules/main.c
-
37Python/pylifecycle.c
@ -0,0 +1 @@ |
|||
Environment variables are once more read correctly at interpreter startup. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue