Message117677
> 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. |
|
Date |
User |
Action |
Args |
2010-09-30 00:12:38 | vstinner | set | recipients:
+ vstinner, brett.cannon, pjenvey |
2010-09-30 00:12:38 | vstinner | set | messageid: <1285805558.12.0.196482336167.issue9988@psf.upfronthosting.co.za> |
2010-09-30 00:12:36 | vstinner | link | issue9988 messages |
2010-09-30 00:12:35 | vstinner | create | |
|