[issue3926] Idle doesn't obey the new improved warnings arguements
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Nov 21 17:47:21 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
This is already corrected by r66922 (issue3391), but the patches are
different and there are some things I don't like in the present
- in idle_showwarning, the "file" argument is ignored and always
replaced by warning_stream.
- warnings.formatwarning is passed a "file" argument: this could fail,
but works only because the function is monkey-patched. But "file" is not
even used there!
The attached patch seems better, but does not apply cleanly any more.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list