Skip to content

decision: Should we add non-borrowed-ref public C APIs, if so, is there a naming convention? #201

Description

@gpshead

Decide or delegate a single decider for each of the following things:

  1. Q1: Should we add non-borrowed-reference public C APIs where only borrowed-reference ones exist.
    1. in general? or only specific APIs (can we list categories we know we want to do this for if so?).
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions