Skip to content

gh-158660: Add ASSERT_SET_LOCKED() to _PySet_NextEntry() - #163044

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:set_assert
Open

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:set_assert

Conversation

@vstinner

@vstinner vstinner commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

_PySet_NextEntryRef() already has the same ASSERT_SET_LOCKED().

Add also some assertions to other setobject.c functions to make sure that a set is locked when calling set_next() on it.

_PySet_NextEntryRef() already has the same ASSERT_SET_LOCKED().

Add also some assertions to other setobject.c functions to make sure
that a set is locked when calling set_next() on it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant