gh-139852: Add PyObject_GetDict() function by vstinner · Pull Request #139968 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vstinner

Copy link

Member

@vstinner vstinner commented

Oct 11, 2025

edited by github-actions bot

Loading

@vstinner

Copy link

Member Author

The function is similar to PyObject_GenericGetDict() but has a different API and doesn't raise an exception if the __dict__ doesn't exist.

@encukou

Copy link

Member

encukou commented

Oct 15, 2025

For the docs I propose the wording here: vstinner#11

vstinner reacted with thumbs up emoji

@vstinner

Copy link

Member Author

I created capi-workgroup/decisions#82 for the C API Working Group.

@vstinner

Copy link

Member Author

I created capi-workgroup/decisions#82 for the C API Working Group.

And the decision is to not add this function. So I close the PR.

@vstinner vstinner closed this

Nov 17, 2025

@vstinner vstinner deleted the object_getdict branch

December 3, 2025 15:36

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

Reviewers

@encukou encukou encukou left review comments

@efimov-mikhail efimov-mikhail efimov-mikhail left review comments

@ZeroIntensity ZeroIntensity ZeroIntensity left review comments

@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner @encukou @efimov-mikhail @ZeroIntensity