diff --git a/NEWS.rst b/NEWS.rst index 3f7572e..fac21c5 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,10 +1,10 @@ Release History --------------- -0.5.0 (2013-??-??) +0.5.0 (2016-01-12) ^^^^^^^^^^^^^^^^^^ -* Updated to include all features from the upcoming Python 3.4 version of +* Updated to include all features from the Python 3.4 and 3.5 releases of contextlib (also includes some ``ExitStack`` enhancements made following the integration into the standard library for Python 3.3) diff --git a/docs/index.rst b/docs/index.rst index 1fd4658..cd32393 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -21,14 +21,14 @@ involving the ``with`` statement. Additions Relative to the Standard Library ------------------------------------------ -This module is primarily a backport of the Python 3.4 version of +This module is primarily a backport of the Python 3.5 version of :mod:`contextlib` to earlier releases. However, it is also a proving ground for new features not yet part of the standard library. There are currently no such features in the module. Refer to the :mod:`contextlib` documentation for details of which -versions of Python 3 include the various APIs provided in this module. +versions of Python 3 introduce the various APIs provided in this module. API Reference @@ -183,12 +183,23 @@ Functions and classes provided: applications. It also has no effect on the output of subprocesses. However, it is still a useful approach for many utility scripts. - This context manager is :ref:`reusable but not reentrant `. + This context manager is :ref:`reentrant `. .. versionadded:: 0.5 Part of the standard library in Python 3.4 and later +.. function:: redirect_stderr(new_target) + + Similar to :func:`redirect_stdout`, but redirecting :data:`sys.stderr` to + another file or file-like object. + + This context manager is :ref:`reentrant `. + + .. versionadded:: 0.5 + Part of the standard library in Python 3.5 and later + + .. class:: ContextDecorator() A base class that enables a context manager to also be used as a decorator.