Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-127954: Document PyObject_DelItemString #127986

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

rruuaanng
Copy link
Contributor

@rruuaanng rruuaanng commented Dec 16, 2024

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Dec 16, 2024
@rruuaanng rruuaanng changed the title gh-127954: Complete missing PyObject_DelItemString function documentation gh-127954: Add missing PyObject_DelItemString function documentation Dec 16, 2024
@ZeroIntensity ZeroIntensity added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Dec 16, 2024
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -492,6 +492,13 @@ Object Protocol
on failure. This is equivalent to the Python statement ``del o[key]``.


.. c:function:: int PyObject_DelItemString(PyObject *o, const char *key)

This is the same as :c:func:`PyObject_DelItem`, but *key* is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the canonical1 way to write it (git grep -i "similar to" Doc/c-api for inspiration):

Suggested change
This is the same as :c:func:`PyObject_DelItem`, but *key* is
Similar to :c:func:`PyObject_DelItem`, but *key* is

Footnotes

  1. "This is the same as" is sometimes used, but "Similar to [...], but" is a more common, and also more concise.

@erlend-aasland erlend-aasland linked an issue Jan 4, 2025 that may be closed by this pull request
@erlend-aasland erlend-aasland changed the title gh-127954: Add missing PyObject_DelItemString function documentation gh-127954: Document PyObject_DelItemString Jan 4, 2025
@erlend-aasland erlend-aasland merged commit 8ade153 into python:main Jan 4, 2025
44 checks passed
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2025
(cherry picked from commit 8ade153)

Co-authored-by: RUANG (James Roy) <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 4, 2025
(cherry picked from commit 8ade153)

Co-authored-by: RUANG (James Roy) <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jan 4, 2025

GH-128496 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 4, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 4, 2025

GH-128497 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jan 4, 2025
erlend-aasland pushed a commit that referenced this pull request Jan 4, 2025
(cherry picked from commit 8ade153)

Co-authored-by: RUANG (James Roy) <[email protected]>
erlend-aasland pushed a commit that referenced this pull request Jan 4, 2025
(cherry picked from commit 8ade153)

Co-authored-by: RUANG (James Roy) <[email protected]>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 6, 2025
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

PyObject_DelItemString is not documented
6 participants