Message314449
Harmut, thanks for the status update!
Victor, the problem is that both sys.warnoptions and sys._xoptions get read by Py_Initialize(), so setting them afterwards is essentially pointless - while you do still change the contents of the sys attributes, doing so doesn't have any further effect.
In 3.8, we'll hopefully make an updated version of PEP 432 public, and hence be able to deprecate calling them prior to Py_InitializeCore, and either advise folks to use the the new config structs instead, or else adjust the way that _PySys_BeginInit and _PySys_EndInit work so that the relevant sys module attributes get created in Py_InitializeCore rather than in Py_InitializeMainInterpreter. |
|
Date |
User |
Action |
Args |
2018-03-26 12:33:51 | ncoghlan | set | recipients:
+ ncoghlan, htgoebel, vstinner, ned.deily, pmpp, eric.snow, miss-islington, springermac |
2018-03-26 12:33:51 | ncoghlan | set | messageid: <1522067631.36.0.467229070634.issue33042@psf.upfronthosting.co.za> |
2018-03-26 12:33:51 | ncoghlan | link | issue33042 messages |
2018-03-26 12:33:51 | ncoghlan | create | |
|