Message323156
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 |
|
Date |
User |
Action |
Args |
2018-08-05 16:07:17 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, ronaldoussoren, vstinner, ned.deily, eric.snow |
2018-08-05 16:07:17 | ncoghlan | set | messageid: <1533485237.63.0.56676864532.issue34247@psf.upfronthosting.co.za> |
2018-08-05 16:07:17 | ncoghlan | link | issue34247 messages |
2018-08-05 16:07:17 | ncoghlan | create | |
|