This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients brett.cannon, eric.snow, ncoghlan, ned.deily, ronaldoussoren, vstinner
Date 2018-08-05.16:07:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533485237.63.0.56676864532.issue34247@psf.upfronthosting.co.za>
In-reply-to
Content
My comment wasn't about the 3.7.0 -> 3.7.1 fix, but rather about the fact that I suspect that 3.7.1 is now going to respect some environment variables in this case that 3.6.x ignored. I don't know for sure though, since we didn't have a test case for this until you wrote one.

So I was thinking we could include a porting note along the lines of:

===============
- starting in 3.7.1, `Py_Initialize` now consistently reads and respects all of the same environment settings as `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 behaviour is unwanted, set `Py_IgnoreEnvironmentFlag = 1` before calling `Py_Initialize`.
===============

That note then serves two purposes:

- it lets embedders know that `Py_IgnoreEnvironmentFlag = 0` just plain doesn't work properly in 3.7.0 (without their needing to find this bug for themselves)
- it lets embedders know that they may want to set `Py_IgnoreEnvironmentFlag = 1` if their embedded interpreter is now being affected by environmental settings that it ignored in previous versions
History
Date User Action Args
2018-08-05 16:07:17ncoghlansetrecipients: + ncoghlan, brett.cannon, ronaldoussoren, vstinner, ned.deily, eric.snow
2018-08-05 16:07:17ncoghlansetmessageid: <1533485237.63.0.56676864532.issue34247@psf.upfronthosting.co.za>
2018-08-05 16:07:17ncoghlanlinkissue34247 messages
2018-08-05 16:07:17ncoghlancreate