diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-11 00:05:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-11 00:05:44 (GMT) |
commit | 22b46e0ba90636d237736ca0ffdeba704e00a570 (patch) | |
tree | ddd2415d59554095ff2b183b7b8ac2dc08898465 /Lib/functools.py | |
parent | e208b7c5b16d4150abde76063bc23e36b7304af5 (diff) | |
download | cpython-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.py | 4 |
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 |