-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Conversation
PyObject_DelItemString
function documentationPyObject_DelItemString
function documentation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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):
This is the same as :c:func:`PyObject_DelItem`, but *key* is | |
Similar to :c:func:`PyObject_DelItem`, but *key* is |
Footnotes
-
"This is the same as" is sometimes used, but "Similar to [...], but" is a more common, and also more concise. ↩
PyObject_DelItemString
function documentationPyObject_DelItemString
This comment was marked as outdated.
This comment was marked as outdated.
(cherry picked from commit 8ade153) Co-authored-by: RUANG (James Roy) <[email protected]>
(cherry picked from commit 8ade153) Co-authored-by: RUANG (James Roy) <[email protected]>
GH-128496 is a backport of this pull request to the 3.13 branch. |
GH-128497 is a backport of this pull request to the 3.12 branch. |
(cherry picked from commit 8ade153) Co-authored-by: RUANG (James Roy) <[email protected]>
(cherry picked from commit 8ade153) Co-authored-by: RUANG (James Roy) <[email protected]>
PyObject_DelItemString
is not documented #127954📚 Documentation preview 📚: https://cpython-previews--127986.org.readthedocs.build/