]> granicus.if.org Git - python/commit
bpo-31845: Fix reading flags from environment (GH-4105)
authorNick Coghlan <ncoghlan@gmail.com>
Wed, 25 Oct 2017 02:11:26 +0000 (12:11 +1000)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2017 02:11:26 +0000 (12:11 +1000)
commitd7ac06126db86f76ba92cbca4cb702852a321f78
tree0742294efd6ef24d4f7644099d421c97346fee93
parent850a18e03e8f8309bc8c39adc6e7d51a4568cd9a
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.
Lib/test/test_cmd_line.py
Misc/NEWS.d/next/Core and Builtins/2017-10-24-21-27-32.bpo-31845.8OS-k3.rst [new file with mode: 0644]
Modules/main.c
Python/pylifecycle.c