The Wayback Machine - https://web.archive.org/web/20220510124533/https://github.com/python/cpython/pull/28164
Skip to content
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

More useful OrderedDict LRU recipes #28164

Merged
merged 12 commits into from Sep 5, 2021

Conversation

Copy link
Contributor

@rhettinger rhettinger commented Sep 4, 2021

No description provided.

@rhettinger rhettinger changed the title New recipe better demonstrates OrderedDict use cases and use patterns More useful OrderedDict LRU recipes Sep 5, 2021
@rhettinger rhettinger merged commit c860d30 into python:main Sep 5, 2021
12 checks passed
@miss-islington
Copy link

@miss-islington miss-islington commented Sep 5, 2021

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 5, 2021
(cherry picked from commit c860d30)

Co-authored-by: Raymond Hettinger <[email protected]>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Sep 5, 2021

GH-28179 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit that referenced this issue Sep 5, 2021
(cherry picked from commit c860d30)

Co-authored-by: Raymond Hettinger <[email protected]>
@NoAnyLove
Copy link

@NoAnyLove NoAnyLove commented Sep 7, 2021

just out of curious, why we self.cache.popitem(0) instead of self.cache.popitem(False)?

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.

None yet

5 participants