summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-11-28 21:28:06 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-11-28 21:28:06 (GMT)
commitbb44fe0a0bf0b1688f95b3cce34a69d98a58e371 (patch)
treea1cabb3c2abb956203dec777af9091394e47317a /Doc/whatsnew
parentae553eb794cae10de0ece64de096647a8b304137 (diff)
downloadcpython-bb44fe0a0bf0b1688f95b3cce34a69d98a58e371.zip
cpython-bb44fe0a0bf0b1688f95b3cce34a69d98a58e371.tar.gz
cpython-bb44fe0a0bf0b1688f95b3cce34a69d98a58e371.tar.bz2
Issue #22389: Add contextlib.redirect_stderr().
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.5.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 079c80f..658c975 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -148,6 +148,15 @@ compileall
can now do parallel bytecode compilation.
(Contributed by Claudiu Popa in :issue:`16104`.)
+contextlib
+----------
+
+* The new :func:`contextlib.redirect_stderr` context manager(similar to
+ :func:`contextlib.redirect_stdout`) makes it easier for utility scripts to
+ handle inflexible APIs that write their output to :data:`sys.stderr` and
+ don't provide any options to redirect it.
+ (Contributed by Berker Peksag in :issue:`22389`.)
+
doctest
-------