Message159514
| 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:05 | petere | set | recipients:
+ petere |
| 2012年04月28日 09:56:05 | petere | set | messageid: <1335606965.58.0.412104204254.issue14689@psf.upfronthosting.co.za> |
| 2012年04月28日 09:56:04 | petere | link | issue14689 messages |
| 2012年04月28日 09:56:04 | petere | create |
|