➜

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.

作者 ncoghlan
收信人 eric.snow, htgoebel, miss-islington, ncoghlan, ned.deily, pmpp, springermac, vstinner
日期 2018-03-26.12:33:51
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1522067631.36.0.467229070634.issue33042@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2018-03-26 12:33:51ncoghlan修改recipients: + ncoghlan, htgoebel, vstinner, ned.deily, pmpp, eric.snow, miss-islington, springermac
2018-03-26 12:33:51ncoghlan修改messageid: <1522067631.36.0.467229070634.issue33042@psf.upfronthosting.co.za>
2018-03-26 12:33:51ncoghlan链接issue33042 messages
2018-03-26 12:33:51ncoghlan创建