Mailing List Archive

[issue14689] make PYTHONWARNINGS variable work in libpython
New submission from Peter Eisentraut <peter_e@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@bugs.python.org>
<http://bugs.python.org/issue14689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14689] make PYTHONWARNINGS variable work in libpython [ In reply to ]
Changes by Antoine Pitrou <pitrou@free.fr>:


----------
nosy: +brett.cannon
stage: -> patch review

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14689] make PYTHONWARNINGS variable work in libpython [ In reply to ]
Changes by Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>:


----------
nosy: +Arfrever

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14689>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com