From a3bcdc677af9dc0eb19d70723c5513d074020bd0 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Wed, 12 Sep 2018 12:21:35 -0700 Subject: [PATCH] bpo-34247: add porting note to 3.7 What's New --- Doc/whatsnew/3.7.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index be4fef18191796..f53a0268738ad2 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -2484,3 +2484,13 @@ The current exception state has been moved from the frame object to the co-routi This simplified the interpreter and fixed a couple of obscure bugs caused by having swap exception state when entering or exiting a generator. (Contributed by Mark Shannon in :issue:`25612`.) + +Notable changes in Python 3.7.1 +=============================== + +Starting in 3.7.1, :c:func:`Py_Initialize` now consistently reads and respects +all of the same environment settings as :c:func:`Py_Main` (in earlier Python +versions, it respected an ill-defined subset of those environment variables, +while in Python 3.7.0 it didn't read any of them due to :issue:`34247`). If +this behavior is unwanted, set :c:data:`Py_IgnoreEnvironmentFlag` to 1 before +calling :c:func:`Py_Initialize`.