File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -253,10 +253,10 @@ Borrow variant
253253To ease migration of C extensions to the new C API, a variant is provided
254254to return borrowed references rather than strong references::
255255
256- // Similar to "Py_INCREF (ob); return ob;"
256+ // Similar to "Py_DECREF (ob); return ob;"
257257 PyObject* _Py_StealRef(PyObject *ob);
258258
259- // Similar to "Py_XINCREF (ob); return ob;"
259+ // Similar to "Py_XDECREF (ob); return ob;"
260260 PyObject* _Py_XStealRef(PyObject *ob);
261261
262262 // PyThreadState_GetFrame(). Not available on PyPy.
@@ -329,7 +329,7 @@ Links
329329* numpy has its own compatibility layer, ``npy_pycompat.h `` and
330330 ``npy_3kcompat.h `` header files. It supports more C compilers than
331331 pythoncapi_compat.h: it supports ``__STRICT_ANSI__ `` (ISO C90) for example.
332- Reject `PR 18713: MAINT: Use pythoncapi_compat.h in npy_3kcompat.h
332+ Rejected `PR 18713: MAINT: Use pythoncapi_compat.h in npy_3kcompat.h
333333 <https://github.com/numpy/numpy/pull/18713> `_ (when it was rejected, numpy
334334 still had code for compatibility with Python 2.7).
335335
You can’t perform that action at this time.
0 commit comments