[New-bugs-announce] [issue14689] make PYTHONWARNINGS variable work in libpython

Peter Eisentraut report at bugs.python.org
Sat Apr 28 11:56:05 CEST 2012


New submission from Peter Eisentraut <peter_e at gmx.net>:

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.)

----------
components: Interpreter Core
files: py-pythonwarnings-envvar.patch
keywords: patch
messages: 159514
nosy: petere
priority: normal
severity: normal
status: open
title: make PYTHONWARNINGS variable work in libpython
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file25390/py-pythonwarnings-envvar.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14689>
_______________________________________


More information about the New-bugs-announce mailing list