[issue41280] lru_cache on 0-arity functions should default to maxsize=None
Raymond Hettinger
report at bugs.python.org
Sat Jul 11 22:59:16 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
In 3.9, the @cache() alias is provided as a cleaner way to create an unbounded cache.¹ There is no need to special case a zero-arity function. Besides as Rémi and Serhiy have pointed out, we can't know the arity in advance.
¹ https://docs.python.org/3.9/library/functools.html#functools.cache
----------
resolution: -> out of date
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41280>
_______________________________________
More information about the Python-bugs-list
mailing list