Roundup Robot added the comment:
New changeset 7f12c9c09fb6 by Berker Peksag in branch 'default':
Issue #22389: Add contextlib.redirect_stderr().
https://hg.python.org/cpython/rev/7f12c9c09fb6
--
nosy: +python-dev
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: rhettinger - berker.peksag
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: ncoghlan - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
___
Berker Peksag added the comment:
Good point. Patch updated. Thanks for the reviews!
--
Added file: http://bugs.python.org/file36874/issue22389_v3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
Nick Coghlan added the comment:
I just pushed the docs fix for issue #21061, so the docs part of the patch may
need tweaking in order to apply automatically.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Generalize contextlib.redirect_stdout - Add contextlib.redirect_stderr()
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
___
STINNER Victor added the comment:
issue22389_v2.diff:
.. function:: redirect_stdout(new_target)
+ redirect_stderr(new_target)
I would prefer to have two distinct entries in the documentation. The
redirect_stderr() doc can be after redirect_stdout() and just say Similar to
Yury Selivanov added the comment:
I think that Victor is right, it would be better to have two distinct entries
in the docs. Besides that - LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389