contextlib2/docs/index.rst

84 lines
2.6 KiB
ReStructuredText
Raw Permalink Normal View History

2011-12-13 12:41:17 +00:00
.. contextlib2 documentation master file, created by
sphinx-quickstart on Tue Dec 13 20:29:56 2011.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
2011-12-18 08:09:52 +00:00
contextlib2 --- Updated utilities for context management
========================================================
2011-12-13 12:41:17 +00:00
.. module:: contextlib2
:synopsis: Backports and future enhancements for the contextlib module
This module provides backports of features in the latest version of the
standard library's :mod:`contextlib` module to earlier Python versions. It
also serves as a real world proving ground for potential future enhancements
to that module.
Like :mod:`contextlib`, this module provides utilities for common tasks
involving the ``with`` and ``async with`` statements.
2011-12-13 12:41:17 +00:00
Additions Relative to the Standard Library
------------------------------------------
This module is primarily a backport of the Python 3.12.3 version of
:mod:`contextlib` to earlier releases. (Note: as of the start of the Python 3.13
beta release cycle, there have been no subsequent changes to ``contextlib``)
The module makes use of positional-only argument syntax in several call
signatures, so the oldest supported Python version is Python 3.8.
This module may also be used as a proving ground for new features not yet part
of the standard library. There are currently no such features in the module.
2013-10-26 11:42:03 +00:00
Finally, this module contains some deprecated APIs which never graduated to
standard library inclusion. These interfaces are no longer documented, but may
still be present in the code (emitting ``DeprecationWarning`` if used).
2011-12-13 12:41:17 +00:00
Using the Module
====================
.. toctree::
contextlib2.rst
2011-12-13 12:41:17 +00:00
Obtaining the Module
====================
This module can be installed directly from the `Python Package Index`_ with
pip_::
pip install contextlib2
Alternatively, you can download and unpack it manually from the `contextlib2
PyPI page`_.
There are no operating system or distribution specific versions of this
module - it is a pure Python module that should work on all platforms.
Supported Python versions are currently 3.8+.
2011-12-13 12:41:17 +00:00
.. _Python Package Index: http://pypi.python.org
.. _pip: http://www.pip-installer.org
.. _contextlib2 pypi page: http://pypi.python.org/pypi/contextlib2
Development and Support
-----------------------
2016-04-17 07:31:06 +00:00
contextlib2 is developed and maintained on GitHub_. Problems and suggested
2011-12-13 12:41:17 +00:00
improvements can be posted to the `issue tracker`_.
2016-07-27 14:41:38 +00:00
.. _GitHub: https://github.com/jazzband/contextlib2
.. _issue tracker: https://github.com/jazzband/contextlib2/issues
2011-12-13 12:41:17 +00:00
2011-12-18 08:09:52 +00:00
.. include:: ../NEWS.rst
2011-12-13 12:41:17 +00:00
Indices and tables
==================
* :ref:`genindex`
* :ref:`search`