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 eric.snow, htgoebel, miss-islington, ncoghlan, ned.deily, pmpp, springermac, vstinner
Date 2018-03-26.12:33:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:51ncoghlansetrecipients: + ncoghlan, htgoebel, vstinner, ned.deily, pmpp, eric.snow, miss-islington, springermac
2018-03-26 12:33:51ncoghlansetmessageid: <>
2018-03-26 12:33:51ncoghlanlinkissue33042 messages
2018-03-26 12:33:51ncoghlancreate