GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-139852: Add PyObject_GetDict() function by vstinner · Pull Request #139968 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Oct 11, 2025 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • Issue: [C API] Add PyObject_GetDict() function #139852

📚 Documentation preview 📚: https://cpython-previews--139968.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vstinner
pythongh-139852: Add PyObject_GetDict() function
79906b5
@vstinner
vstinner requested review from AA-Turner and ZeroIntensity as code owners October 11, 2025 18:50
@bedevere-app bedevere-app Bot added the awaiting core review label Oct 11, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Oct 11, 2025
[C API] Add PyObject_GetDict() function #139852
Closed
@vstinner

vstinner commented Oct 11, 2025

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ZeroIntensity
ZeroIntensity reviewed Oct 11, 2025
View reviewed changes
Comment thread Doc/c-api/object.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@vstinner vstinner mentioned this pull request Oct 11, 2025
gh-139852: Add PyObject_GetDictPtr() function #139854
Closed
@vstinner vstinner added the topic-C-API label Oct 11, 2025
encukou
encukou reviewed Oct 13, 2025
View reviewed changes
Comment thread Doc/c-api/object.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@vstinner
Recommend PyObject_GetDict()
8fca0cd
vstinner
vstinner commented Oct 14, 2025
View reviewed changes
Comment thread Doc/whatsnew/3.15.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

vstinner added 3 commits October 14, 2025 15:19
@vstinner
Complete _PyObject_GetDictPtr() migration guide
ba6ebef
@vstinner
Merge branch 'main' into object_getdict
12b616b
@vstinner
Update doc
e0f2ede
@encukou

encukou commented Oct 15, 2025

Copy link
Copy Markdown
Member

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

vstinner reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@encukou
Adjust recommendations in PyObject_GenericGetDict docs (#11)
d250442
@vstinner vstinner mentioned this pull request Oct 16, 2025
Add PyObject_GetDict() function capi-workgroup/decisions#82
Closed
1 of 5 tasks
@vstinner

vstinner commented Oct 16, 2025

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner
Enhance tests
ed4a477
@vstinner

vstinner commented Nov 17, 2025

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting core review topic-C-API

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@vstinner @encukou @efimov-mikhail @ZeroIntensity
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.