-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
decision: Should we add non-borrowed-ref public C APIs, if so, is there a naming convention? #201
Comments
FTR, related APIs with the Ref suffix:
|
If yes to Q1, there's another follow-up question: what to do with the orphaned old API. PEP-387 says how to deprecate/remove it, but not if or when to do so. |
I understood that the Steering Council meets once per week, every monday. @gpshead created this issue at July 2, so I understand that you had 2 meetings to discuss it, but apparently either you didn't visit this issue, or no decision was taken. Would it be possible to have transparency here? Did you visit the issue? Do you need more time to take a decision? What can be done? Since @gpshead asked to get SC to take a decision, I'm now stuck at waiting for the SC (decision). Are you going to visit (discuss) this topic tonight? |
We didn't visit the issue, thus we need more time (PEP 703 is not exactly an easy PEP 😉). |
Anecdotal evidence against solving a single problem (borrowed refs) en masse: The new (I raised this on the issue, which is now closed: python/cpython#105922 (comment). I'm not sure what I should do next. And I don't really want to spend much time on one function I happened to notice.) (Edit, after Victor's comment: to be clear, I don't care much about |
Is there any user request for such feature? Can't you get the behavior you want with existing functions, like checking if the name is in sys.modules? One minor change would be to provide the information if the module was imported or created (add an optional parameter for that). You can open an issue if you want that. |
It seems like the Steering Council is busy with the nogil PEP. I decided to move on and merge python/cpython#106005 since my PR was approved (well, it had 3 approvals, but it lost 2 in the bumpy discussion). If the Steering Council is in disagreement, the function can be reverted before Python 3.13 final: we have plently of time to consider such revert. |
The steering council chatted about non-borrowed-ref and naming conventions today. We want to delegate this to the C API working group to come back with a broader recommendation. @iritkatriel has put together the initial draft of https://github.com/capi-workgroup/problems/blob/main/capi_problems.rst for example. |
Decide or delegate a single decider for each of the following things:
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
The text was updated successfully, but these errors were encountered: