Author vstinner
Recipients brett.cannon, pjenvey, vstinner
Date 2010-09-30.00:12:34
SpamBayes Score 1.19847e-05
Marked as misclassified No
Message-id <1285805558.12.0.196482336167.issue9988@psf.upfronthosting.co.za>
In-reply-to
Content
> Maybe the PYTHONWARNINGS code should be moved there instead?

sys.warnoptions is read by the warnings module (not the _warnings module) when this module is loaded. The warnings module is loaded by Py_InitializeEx() if sys.warnoptions list is not empty.

It might be possible to read PYTHONWARNINGS env var after initfsencoding() but before loading the warnings module. But we have to ensure that Py_InitializeEx() can still be called multiple times.
History
Date User Action Args
2010-09-30 00:12:38vstinnersetrecipients: + vstinner, brett.cannon, pjenvey
2010-09-30 00:12:38vstinnersetmessageid: <1285805558.12.0.196482336167.issue9988@psf.upfronthosting.co.za>
2010-09-30 00:12:36vstinnerlinkissue9988 messages
2010-09-30 00:12:35vstinnercreate