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 petere
Recipients petere
Date 2012-04-28.09:56:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335606965.58.0.412104204254.issue14689@psf.upfronthosting.co.za>
In-reply-to
Content
The environment variable PYTHONWARNINGS only works with the python interpreter binary, but not with programs embedding libpython.  This could be changed by moving the code from Modules/main.c to Python/pythonrun.c.  See attached patch (compiles cleanly, tests pass, not tested on Windows).

(I have checked all the other environment variables listed on the python man page for whether those that could be usable in the library are actually processed in the library, and all but PYTHONWARNINGS appear to behave reasonably.)
History
Date User Action Args
2012-04-28 09:56:05peteresetrecipients: + petere
2012-04-28 09:56:05peteresetmessageid: <1335606965.58.0.412104204254.issue14689@psf.upfronthosting.co.za>
2012-04-28 09:56:04peterelinkissue14689 messages
2012-04-28 09:56:04peterecreate