Skip to content

More useful OrderedDict LRU recipes#28164

Merged
rhettinger merged 12 commits into
python:mainfrom
rhettinger:ordered_dict_lru_recipe
Sep 5, 2021
Merged

More useful OrderedDict LRU recipes#28164
rhettinger merged 12 commits into
python:mainfrom
rhettinger:ordered_dict_lru_recipe

Conversation

@rhettinger
Copy link
Copy Markdown
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
Copy Markdown
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 <rhettinger@users.noreply.github.com>
@bedevere-bot
Copy link
Copy Markdown

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 <rhettinger@users.noreply.github.com>
@NoAnyLove
Copy link
Copy Markdown

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