bpo-34247: add porting note to 3.7 What's New (GH-9223) · python/cpython@66755cb (original) (raw)

Original file line number Diff line number Diff line change
@@ -2484,3 +2484,13 @@ The current exception state has been moved from the frame object to the co-routi
2484 2484 This simplified the interpreter and fixed a couple of obscure bugs caused by
2485 2485 having swap exception state when entering or exiting a generator.
2486 2486 (Contributed by Mark Shannon in :issue:`25612`.)
2487 +
2488 +Notable changes in Python 3.7.1
2489 +===============================
2490 +
2491 +Starting in 3.7.1, :c:func:`Py_Initialize` now consistently reads and respects
2492 +all of the same environment settings as :c:func:`Py_Main` (in earlier Python
2493 +versions, it respected an ill-defined subset of those environment variables,
2494 +while in Python 3.7.0 it didn't read any of them due to :issue:`34247`). If
2495 +this behavior is unwanted, set :c:data:`Py_IgnoreEnvironmentFlag` to 1 before
2496 +calling :c:func:`Py_Initialize`.