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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contextlib2-0.5.2.tar.gz.
File metadata
- Download URL: contextlib2-0.5.2.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83c8d5e75c1b372a5e1fbd267cd37a392cc53f13a0f74933075bff8213dc581e
|
|
| MD5 |
e6d057e6d013ee006ab024ba1eaf6b56
|
|
| BLAKE2b-256 |
9de1812f0722bbfcff1ef7a8bb15abefe27a93bab04de00f8ebc93f2fe51fa5a
|
File details
Details for the file contextlib2-0.5.2-py3-none-any.whl.
File metadata
- Download URL: contextlib2-0.5.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6271717cdbfbe12e6aa3dde1bb8389f454f58100cb5615a2802ca1ab8e599702
|
|
| MD5 |
17fa0e7408c7b3dd30905b7970e29f1f
|
|
| BLAKE2b-256 |
43334cf6eacba5e4f36c3753845b66ce9c6a27b790e9c9a932f9c942d93adbd7
|
File details
Details for the file contextlib2-0.5.2-py2-none-any.whl.
File metadata
- Download URL: contextlib2-0.5.2-py2-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f446cafc2da6b6bebf2a9adc9779510772f398aa1b24711876652799e9db5984
|
|
| MD5 |
c9b6550cf69d2e7dae23d2be216565ac
|
|
| BLAKE2b-256 |
d34b38b1d2c7e16842481592fb041e72c57362199532bfb6b43f3cc43f780f5d
|