mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-16 21:50:24 +00:00
Update NEWS and docs for 0.5.0
This commit is contained in:
parent
6d77165d63
commit
b5db8d23a4
2 changed files with 16 additions and 5 deletions
4
NEWS.rst
4
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 <reusable-cms>`.
|
||||
This context manager is :ref:`reentrant <reentrant-cms>`.
|
||||
|
||||
.. 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 <reentrant-cms>`.
|
||||
|
||||
.. 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue