[issue15805] Add stdout redirection tool to contextlib
Georg Brandl
report at bugs.python.org
Sat Oct 12 18:48:47 CEST 2013
Georg Brandl added the comment:
Whatsnew: yes please.
As for your second point, I assume Raymond wanted to exemplify usage with an "unfortunate" API that prints to stderr with no option to change it. It just turned out that dis() is not one of those APIs.
For purposes of print(), you're almost always better off using file=x on each print you do.
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15805>
_______________________________________
More information about the Python-bugs-list
mailing list