Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement PyDictMethods #3675

Merged
merged 1 commit into from
Dec 20, 2023
Merged

implement PyDictMethods #3675

merged 1 commit into from
Dec 20, 2023

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

src/types/dict.rs Outdated Show resolved Hide resolved
src/types/dict.rs Outdated Show resolved Hide resolved
src/types/dict.rs Outdated Show resolved Hide resolved
@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
37 checks passed
@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