Skip to content

Clarify docs for error case of PyDict_GetItemRef#149506

Open
ngoldbaum wants to merge 2 commits intopython:mainfrom
ngoldbaum:fix-dict-getitemref-error-docs
Open

Clarify docs for error case of PyDict_GetItemRef#149506
ngoldbaum wants to merge 2 commits intopython:mainfrom
ngoldbaum:fix-dict-getitemref-error-docs

Conversation

@ngoldbaum
Copy link
Copy Markdown
Contributor

@ngoldbaum ngoldbaum commented May 7, 2026

I manually inspected and asked Claude to inspect the implementation, and I think all error paths set *result to NULL.

See numpy/numpy#31256 (comment) for where this came up for me today.

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 7, 2026

Documentation build overview

📚 cpython-previews | 🛠️ Build #32593159 | 📁 Comparing 3a0b666 against main (310fe88)

  🔍 Preview build  

2 files changed
± c-api/dict.html
± whatsnew/changelog.html

@ngoldbaum ngoldbaum force-pushed the fix-dict-getitemref-error-docs branch from de69c83 to 2abbc1e Compare May 7, 2026 20:42
Comment thread Doc/c-api/dict.rst Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant