functools32
Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy.
Decision gist · record as of 2026-08-14
No, unless you are maintaining a legacy Python 2.7 or PyPy2 codebase that cannot migrate to Python 3. The package is abandoned (last release 2015-07-11, last commit 2017-07-19), and Python 3's functools is built-in. For any new project, use Python 3's standard functools directly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Python 2.7 or PyPy only; not compatible with Python 3.x (which has functools built-in).
- High install friction: package has been abandoned since 2015 (last release 2015-07-11, last commit 2017-07-19) and has not been maintained for over 4052 days.
- Only relevant for legacy Python 2.7 or PyPy codebases still in active use.
License · maintenance · safety
PSF license (permissive) — Licensed under PSF license (permissive), so no licensing restrictions on use or redistribution.
last release 2015-07-11 (4052 days) · last repo commit 2017-07-19 · 52 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 371,465 downloads/mo, #7,170 on PyPI
Alternatives
Verify before relying
pip install functools32
from functools import lru_cache
@lru_cache(maxsize=None)
def expensive_function(x):
return x * 2- Whether this package works correctly with modern PyPy versions or only historical ones.
- Whether any security issues exist in the Python 2.7 functools implementation that have been patched in Python 3.x since the last release.
- Current status of Python 2.7 support in active projects using this backport.
What it is and what it does
functools32 is a backport of the Python 3.2 functools standard library module for Python 2.7 and PyPy environments. It provides the lru_cache decorator and other functools utilities that were introduced in Python 3.2 but were not available in Python 2.7's standard library. The package has no runtime dependencies and installs as a drop-in replacement for the functools module on Python 2.7.
This package is now obsolete for new projects, as Python 3 has had functools built-in since its inception. It exists only to support legacy codebases that cannot yet migrate away from Python 2.7 or PyPy2. The project has been abandoned, with the last release on 2015-07-11.
Use it for
- Add lru_cache decorator to Python 2.7 code without rewriting caching logic.
- Maintain compatibility with Python 3.2+ functools API while running on Python 2.7.
- Backport a Python 3 library to Python 2.7 that depends on functools.lru_cache.
- Support PyPy2 environments that need the newer functools interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining a legacy Python 2.7 or PyPy2 codebase that cannot migrate to Python 3.
The package is abandoned (last release 2015-07-11, last commit 2017-07-19), and Python 3's functools is built-in. For any new project, use Python 3's standard functools directly.
Install
functools32 on PyPI
Before you install
High install friction: package has been abandoned since 2015 (last release 2015-07-11, last commit 2017-07-19) and has not been maintained for over 4052 days. Only relevant for legacy Python 2.7 or PyPy codebases still in active use.
Python 2.7 or PyPy only; not compatible with Python 3.x (which has functools built-in).
License in practice
Licensed under PSF license (permissive), so no licensing restrictions on use or redistribution.
Quickstart
pip install functools32
from functools import lru_cache
@lru_cache(maxsize=None)
def expensive_function(x):
return x * 2
Verify before relying
- Whether this package works correctly with modern PyPy versions or only historical ones.
- Whether any security issues exist in the Python 2.7 functools implementation that have been patched in Python 3.x since the last release.
- Current status of Python 2.7 support in active projects using this backport.
Package facts
| License | PSF license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 4,052 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 371,465 / month, #7,170 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: functools32-3.2.3-2.tar.gz; functools32-3.2.3-2.zip
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “functools backport python 2.7”
- functools32Backport of Python 3.2's functools module (including lru_cache…
- backports.functools-lru-cacheProvides the lru_cache decorator from Python 3.3's functools module…
- singledispatchProvides single-dispatch generic functions—a decorator-based…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also backports.functools-lru-cache · cachetools · methodtools · async-lru · linecache2 · pylru · memoization · singledispatch · subprocess32 · fastcore