summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-11 00:05:44 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-11 00:05:44 (GMT)
commit22b46e0ba90636d237736ca0ffdeba704e00a570 (patch)
treeddd2415d59554095ff2b183b7b8ac2dc08898465 /Lib/functools.py
parente208b7c5b16d4150abde76063bc23e36b7304af5 (diff)
downloadcpython-22b46e0ba90636d237736ca0ffdeba704e00a570.zip
cpython-22b46e0ba90636d237736ca0ffdeba704e00a570.tar.gz
cpython-22b46e0ba90636d237736ca0ffdeba704e00a570.tar.bz2
Separate positional arguments from localized globals.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index b39e77e..666b8db 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -123,8 +123,8 @@ def lru_cache(maxsize=100):
http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used
"""
- def decorating_function(user_function, tuple=tuple, sorted=sorted,
- len=len, KeyError=KeyError):
+ def decorating_function(user_function,
+ *, tuple=tuple, sorted=sorted, len=len, KeyError=KeyError):
cache = OrderedDict() # ordered least recent to most recent
cache_popitem = cache.popitem
cache_renew = cache.move_to_end