Skip to content

CLN: use cache instead of lru_cache for unbound cache #53462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2023

Conversation

fangchenli
Copy link
Member

maxsize=128 is the default value for lru_cache.

maxsize=None is the equivalent of cache after Python 3.9.

Comment on lines -6 to -9
from functools import (
lru_cache,
reduce,
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with other functools import.

@mroeschke mroeschke added this to the 2.1 milestone May 31, 2023
@mroeschke mroeschke merged commit 11b297c into pandas-dev:main May 31, 2023
@mroeschke
Copy link
Member

Thanks @fangchenli

topper-123 pushed a commit to topper-123/pandas that referenced this pull request Jun 5, 2023
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants