You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyObject_DelItemString is part of the limited C-API and is undocumented. This function was implemented in commit b0d71d0 , but no documentation was added.
For anyone interested in documenting this one: it's the same as PyObject_DelItem but instead of taking the key as a PyObject *, it takes the key as a const char *. We should just mention that the key is a UTF-8 encoded bytes string (see PyObject_HasAttrStringWithError for instance for a similar formulation when the parameter is a const char *).
Activity
ZeroIntensity commentedon Dec 15, 2024
Thanks for tracking these down. You might also want to take a look at gh-118915 if you're interested in submitting some PRs :)
picnixz commentedon Dec 15, 2024
For anyone interested in documenting this one: it's the same as
PyObject_DelItembut instead of taking the key as aPyObject *, it takes the key as aconst char *. We should just mention that the key is a UTF-8 encoded bytes string (seePyObject_HasAttrStringWithErrorfor instance for a similar formulation when the parameter is aconst char *).rruuaanng commentedon Dec 15, 2024
I want to ask, if I can complete it? It's documentation can be like at
PyObject_HasAttrStringWithError:---)picnixz commentedon Dec 15, 2024
I'd wait a week in case @koyuki7w wanted to take it (they've be contributing to docs recently).
gh-127954: Document PyObject_DelItemString (#127986)
pythongh-127954: Document PyObject_DelItemString (pythonGH-127986)
pythongh-127954: Document PyObject_DelItemString (pythonGH-127986)
erlend-aasland commentedon Jan 4, 2025
Thanks for the report, Yuki; thanks for the PR, James.
Documentation added in…:
PyObject_DelItemString#127986Auto-merge enabled for the backports. Marking as resolved.
[3.13] gh-127954: Document PyObject_DelItemString (GH-127986) (#128496)
[3.12] gh-127954: Document PyObject_DelItemString (GH-127986) (#128497)
pythongh-127954: Document PyObject_DelItemString (python#127986)
pythongh-127954: Document PyObject_DelItemString (python#127986)