Skip to content

implement PyDictMethods#3675

Merged
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:dict2-try2
Dec 20, 2023
Merged

implement PyDictMethods#3675
davidhewitt merged 1 commit intoPyO3:mainfrom
davidhewitt:dict2-try2

Conversation

@davidhewitt
Copy link
Member

Split from #3606

Fairly mechanical. Most interesting things to note here:

  • I was able to implement the existing gil-ref PyDictIterator as a thin wrapper around the new PyDictIter
  • I added PyBorrowed::from_ptr_unchecked to skip the null check completely in cases where we can make the assumption that a null would be a Python interpreter bug

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Dec 20, 2023
@davidhewitt davidhewitt added this pull request to the merge queue Dec 20, 2023
Merged via the queue into PyO3:main with commit 8bd2972 Dec 20, 2023
@davidhewitt davidhewitt deleted the dict2-try2 branch December 20, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants