Author rhettinger
Recipients orf, remi.lapeyre, rhettinger, serhiy.storchaka
Date 2020-07-12.02:59:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594522756.34.0.97290197629.issue41280@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-07-12 02:59:16rhettingersetrecipients: + rhettinger, serhiy.storchaka, orf, remi.lapeyre
2020-07-12 02:59:16rhettingersetmessageid: <1594522756.34.0.97290197629.issue41280@roundup.psfhosted.org>
2020-07-12 02:59:16rhettingerlinkissue41280 messages
2020-07-12 02:59:16rhettingercreate