Skip to content

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

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

gh-139852: Add PyObject_GetDict() function#139968
vstinner wants to merge 7 commits into
python:mainfrom
vstinner:object_getdict

Conversation

@vstinner

@vstinnervstinner commented Oct 11, 2025

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
MemberAuthor

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 threadDoc/c-api/object.rst
Comment threadDoc/c-api/object.rst Outdated
Comment threadDoc/whatsnew/3.15.rst Outdated
@encukou

Copy link
Copy Markdown
Member

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

@vstinner

Copy link
Copy Markdown
MemberAuthor

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

@vstinner

Copy link
Copy Markdown
MemberAuthor

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 deleted the object_getdict branch December 3, 2025 15:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner@encukou@efimov-mikhail@ZeroIntensity