Skip to content

Remove poplist entries using their stored nodes - #35

Open
vitalivo wants to merge 1 commit into
gruns:masterfrom
vitalivo:fix/poplist-node-removal
Open

vitalivo wants to merge 1 commit into
gruns:masterfrom
vitalivo:fix/poplist-node-removal

Conversation

@vitalivo

Copy link
Copy Markdown

poplist removes a key from the map and then scans the linked list using equality. A non-reflexive key such as float("nan") is found by dictionary identity, but none of its nodes are removed: size() and allitems() still expose deleted entries.

Remove the nodes already indexed for that key. This also avoids scanning unrelated entries. The regression covers interleaved values and a separate NaN key that must remain intact. It fails before the fix; all 56 tests pass on Python 3.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant