Backports and enhancements for the contextlib module
Project description
contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions.
It also serves as a real world proving ground for possible future enhancements to the standard library version.
Development
contextlib2 currently has no dependencies.
Local testing is currently just a matter of running python test_contextlib2.py.
You can test against multiple versions of Python with tox:
pip install tox tox
Versions currently tested in both tox and Travis CI are:
CPython 2.6
CPython 2.7
CPython 3.4
CPython 3.5
CPython 3.6 (CPython development branch)
PyPy
tox also has a PyPy3 configuration, but it is not configured in Travis due to a known incompatibility.
To install several of the relevant runtimes on Fedora 23:
sudo dnf install python python3 pypy pypy3 sudo dnf copr enable -y mstuchli/Python3.5 sudo dnf install python35-python3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for contextlib2-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6271717cdbfbe12e6aa3dde1bb8389f454f58100cb5615a2802ca1ab8e599702 |
|
MD5 | 17fa0e7408c7b3dd30905b7970e29f1f |
|
BLAKE2b-256 | 43334cf6eacba5e4f36c3753845b66ce9c6a27b790e9c9a932f9c942d93adbd7 |
Hashes for contextlib2-0.5.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f446cafc2da6b6bebf2a9adc9779510772f398aa1b24711876652799e9db5984 |
|
MD5 | c9b6550cf69d2e7dae23d2be216565ac |
|
BLAKE2b-256 | d34b38b1d2c7e16842481592fb041e72c57362199532bfb6b43f3cc43f780f5d |