Skip to content

LRUCache.copy's queue methods point to the correct queue#1090

Merged
davidism merged 2 commits intomasterfrom
lrucache-copy
Oct 24, 2019
Merged

LRUCache.copy's queue methods point to the correct queue#1090
davidism merged 2 commits intomasterfrom
lrucache-copy

Conversation

@davidism
Copy link
Copy Markdown
Member

continues #844
closes #843

LRUCache.copy() wasn't calling _postinit, so the queue methods pointed at the empty initial queue rather than the copied queue. Previous PR fixed this by calling _postinit in copy. I've modified this to use queue.extend instead of creating an extra queue, so _postinit isn't required.

@davidism davidism added this to the 2.11.0 milestone Oct 24, 2019
@davidism davidism merged commit 9a7dd7b into master Oct 24, 2019
@davidism davidism deleted the lrucache-copy branch October 24, 2019 15:00
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LRUCache.copy aliases the wrong deque object methods

2 participants