Utility functions for context managers
Python 2.5’s contextlib provides some handy functions for dealing with context managers, but it’s pretty limited. The code in context_tools allows you to use context managers as decorators, as setUp and tearDown functions in unittest tests, and as decorators for generators.
In addition to Python 2.5 and 3.0, context_tools is available for Python 2.4.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash||File type||Python version||Upload date|
|context_tools-0.2-py2.4.egg (4.6 kB) View hashes||Egg||2.4|
|context_tools-0.2-py2.5.egg (4.6 kB) View hashes||Egg||2.5|
|context_tools-0.2-py3.tar.gz (2.7 kB) View hashes||Source||None|
|context_tools-0.2.tar.gz (3.1 kB) View hashes||Source||None|