Skip to content

gh-139852: Add PyObject_GetDict() function - #139968

Closed
vstinner wants to merge 7 commits into
python:mainfrom
vstinner:object_getdict
Closed

vstinner wants to merge 7 commits into
python:mainfrom
vstinner:object_getdict

Conversation

@vstinner

@vstinner vstinner commented Oct 11, 2025 •

Copy link
Copy Markdown
Member
@vstinner

Copy link
Copy Markdown
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.

Comment thread Doc/c-api/object.rst Resolved
Comment thread Doc/c-api/object.rst Resolved
Comment thread Doc/whatsnew/3.15.rst Resolved
@encukou

encukou commented Oct 15, 2025

Copy link
Copy Markdown
Member

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

@vstinner

Copy link
Copy Markdown
Member Author

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

@vstinner

Copy link
Copy Markdown
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

4 participants