[New-bugs-announce] [issue36772] Let lru_cache be used as a decorator with no arguments
Raymond Hettinger
report at bugs.python.org
Wed May 1 20:40:09 EDT 2019
New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:
Follow the lead of the dataclasses module and allow lru_cache() to be used as a straight decorator rather than as a function that returns a decorator. Both of these would now be supported:
@lru_cache
def f(x):
...
@lru_cache(maxsize=256)
def f(x):
...
----------
components: Library (Lib)
messages: 341239
nosy: eric.smith, rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Let lru_cache be used as a decorator with no arguments
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36772>
_______________________________________
More information about the New-bugs-announce
mailing list