[issue7301] Add environment variable $PYTHONWARNINGS
Stefan Krah
report at bugs.python.org
Sun Apr 11 23:00:26 CEST 2010
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
The changes in main.c in r79881 don't look right:
strtok() is used on the string returned by getenv(), which must not
be modified.
Also (and this admittedly cosmetic), perhaps use a static buffer like
wchar_t warning[128] or use a single allocation before the for loop.
What is the maximum length for a single warning?
----------
nosy: +skrah
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7301>
_______________________________________
More information about the Python-bugs-list
mailing list