[issue23016] uncatched exception in lib/warnings.py when executed with pythonw
stockbsd Li added the comment: 1. py2 is unaffected, because stderr/stdout is not None in py2's pythonw and the catch works correctly. 2. as to py3, I prefer this patch: - execpt OSError: + execpt: -- ___ Python tracker <http://bugs.py
[issue23016] uncatched exception in lib/warnings.py when executed with pythonw
New submission from stockbsd Li: in py3k, the following simple code will throw an uncatched exception when executed with pythonw: import warnings warnings.warn('test') the problem occurs in showarning function: in py3k's pythonw , stderr/stdout is set to None, so