diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-13 13:23:08 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-10-13 13:23:08 (GMT) |
commit | b4534ae704a4efb385e2343ecdbc15f232ef78b6 (patch) | |
tree | 09b95778c1851210f48b9e82526b6522b3d31ed1 /Doc/whatsnew/3.4.rst | |
parent | ed7bb488b4d9cf6567649a9b568e8907b159c35e (diff) | |
download | cpython-b4534ae704a4efb385e2343ecdbc15f232ef78b6.zip cpython-b4534ae704a4efb385e2343ecdbc15f232ef78b6.tar.gz cpython-b4534ae704a4efb385e2343ecdbc15f232ef78b6.tar.bz2 |
Docs tweaks for contextlib additions
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index bf958ba..4927b66 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -205,6 +205,19 @@ been expanded so that they match the FCC NTSC versions. The change in results should be less than 1% and may better match results found elsewhere. +contextlib +---------- + +The new :class:`contextlib.ignore` context manager helps to clarify the +intent of code that deliberately ignores failures from a particular +operation. + +The new :class:`contextlib.redirect_stdio` context manager makes it easier +for utility scripts to handle inflexible APIs that don't provide any +options to retrieve their output as a string or direct it to somewhere +other than :data:`sys.stdout`. + + dis --- |