Raymond Hettinger <raymond.hettin...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41280>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to