STINNER Victor <vstin...@python.org> added the comment:
My proposed function doesn't have to be public. I updated the issue and my PR to propose to add a *private* function to clarify that it should not be used unless you understand what you do. ---------- title: [C API] Add Py_Borrow() function: call Py_XDECREF() and return the object -> [C API] Add _Py_Borrow() private function: call Py_XDECREF() and return the object _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42522> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com