RETIRED, further work has moved to Debian project infrastructure
Go to file
Nicolas Mussat 438927ed7b Fix `thread` module import on Python 2.7
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
2015-07-08 14:52:20 +02:00
functools32 Fix `thread` module import on Python 2.7 2015-07-08 14:52:20 +02:00
.gitignore Update gitignore 2012-09-19 13:38:55 +09:00
.travis.yml Add travis.yml 2012-09-19 12:37:07 +09:00
ChangeLog Bump version to 3.2.3-1 2012-09-19 13:44:55 +09:00
LICENSE first commit 2012-09-18 18:32:48 +09:00
MANIFEST.in first commit 2012-09-18 18:32:48 +09:00
README.rst Add Travis CI badge 2012-09-19 12:57:16 +09:00
setup.cfg first commit 2012-09-18 18:32:48 +09:00
setup.py Fix `thread` module import on Python 2.7 2015-07-08 14:52:20 +02:00
test first commit 2012-09-18 18:32:48 +09:00
test_functools32.py Fix import errors 2012-09-19 13:38:26 +09:00
test_support27.py Add test_support from 2.7 2012-09-19 12:37:07 +09:00

README.rst

Python functools32 Build Status_

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