Closed
Description
Decide or delegate a single decider for each of the following things:
- Q1: Should we add non-borrowed-reference public C APIs where only borrowed-reference ones exist.
- in general? or only specific APIs (can we list categories we know we want to do this for if so?).
- Q2: if yes to Q1, is there a preferred naming convention to use for new public C APIs that return a strong reference when the earlier APIs these would be parallel versions of only returned a borrowed reference.
Example: PyDict_GetItem()
...
Discussion contexts: python/cpython#106004 works on the above, has a PR, and links to our modern devguide advice and the broader C-API discussion. But that PR wound up going down a bike shedding rabbit hole over the name and some disagreement on whether or not we should do this despite some support. Understandably frustrating to @vstinner. We can resolve this.
c-api discussion around future API naming: capi-workgroup/problems#52
Metadata
Metadata
Assignees
Labels
No labels