438927ed7b
The Python 2.7 `thread` module has been renamed to `_thread` in Python3. This package was importing the `_thread` anyway, and was thus fallbacking to the `dummy_thread32` module everytime, which is far from failproof (eg. `lru_cache` decorator used in a WSGI app started on uWSGI with threads enabled and high concurrency raises exceptions). This fix loads the `thread` module accordingly, without trying to load Python3 `_thread` module since setup.py prevents installation on Python 3 explicitly. This package targets Python 2.7 only, as documented |
||
---|---|---|
functools32 | ||
.gitignore | ||
.travis.yml | ||
ChangeLog | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
setup.cfg | ||
setup.py | ||
test | ||
test_functools32.py | ||
test_support27.py |
README.rst
Python functools32 _
This is a backport of the Python 3.2 functools module for use on Python versions 2.7 and PyPy. It includes new features lru_cache (Least-recently-used cache decorator).
Refer to the Python 3.2 documentation for usage information: http://docs.python.org/3.2/library/functools.html
Bugs? Try to reproduce them on the latest Python 3.2.x itself and file bug reports on http://bugs.python.org/.
-- ENDOH takanao djmchl@gmail.com