Author orf
Recipients orf
Date 2020-07-11.22:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594507572.96.0.37330867627.issue41280@roundup.psfhosted.org>
In-reply-to
Content
`functools.lru_cache` has a maxsize=128 default for all functions.

If a function has no arguments then this maxsize default is redundant and should be set to `maxsize=None`:

```
@functools.lru_cache()
def function_with_no_args():
    pass
```

Currently you need to add `maxsize=None` manually, and ensure that it is also updated if you alter the function to add arguments.
History
Date User Action Args
2020-07-11 22:46:13orfsetrecipients: + orf
2020-07-11 22:46:12orfsetmessageid: <1594507572.96.0.37330867627.issue41280@roundup.psfhosted.org>
2020-07-11 22:46:12orflinkissue41280 messages
2020-07-11 22:46:12orfcreate