Skip to content

More useful OrderedDict LRU recipes #28164

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 12 commits into from
Sep 5, 2021

Conversation

rhettinger
Copy link
Contributor

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
@miss-islington
Copy link
Contributor

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 pull request Sep 5, 2021
(cherry picked from commit c860d30)

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

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

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Sep 5, 2021
miss-islington added a commit that referenced this pull request Sep 5, 2021
(cherry picked from commit c860d30)

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

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
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants