Skip to content

Add new dictionary functions and extern declarations#5947

Open
clin1234 wants to merge 20 commits intoPyO3:mainfrom
clin1234:patch-2
Open

Add new dictionary functions and extern declarations#5947
clin1234 wants to merge 20 commits intoPyO3:mainfrom
clin1234:patch-2

Conversation

@clin1234
Copy link
Copy Markdown
Contributor

@clin1234 clin1234 commented Apr 4, 2026

Added new functions for dictionary operations and updated extern declarations.

Copy link
Copy Markdown
Contributor

@Tpt Tpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Tpt Tpt added this pull request to the merge queue Apr 4, 2026
@Tpt Tpt removed this pull request from the merge queue due to a manual request Apr 4, 2026
_tmpkeys: *mut PyObject,
}

extern_libpython! {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, forgot to talk about about pypy and graalpy. Have you checked if these functions are defined there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use either PyPy or GraalPy, so I can't tell you if these functions are used by either

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please place these functions in the correct locations in the file (makes it easier to compare against upstream in the future).

@Tpt Tpt self-requested a review April 4, 2026 13:31
@clin1234
Copy link
Copy Markdown
Contributor Author

@Tpt and @davidhewitt, mind reviewing this and #5949 again?


extern_libpython! {
#[cfg(all(Py_3_15, not(Py_LIMITED_API)))]
pub fn PyDict_SetDefaultRef(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please place this in the position which matches the 3.15 headers (i.e. after PyDict_GetItemStringRef).

_tmpkeys: *mut PyObject,
}

extern_libpython! {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please place these functions in the correct locations in the file (makes it easier to compare against upstream in the future).

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.

3 participants