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
253
253
To ease migration of C extensions to the new C API, a variant is provided
254
254
to return borrowed references rather than strong references::
255
255
256
- // Similar to "Py_INCREF (ob); return ob;"
256
+ // Similar to "Py_DECREF (ob); return ob;"
257
257
PyObject* _Py_StealRef(PyObject *ob);
258
258
259
- // Similar to "Py_XINCREF (ob); return ob;"
259
+ // Similar to "Py_XDECREF (ob); return ob;"
260
260
PyObject* _Py_XStealRef(PyObject *ob);
261
261
262
262
// PyThreadState_GetFrame(). Not available on PyPy.
@@ -329,7 +329,7 @@ Links
329
329
* numpy has its own compatibility layer, ``npy_pycompat.h `` and
330
330
``npy_3kcompat.h `` header files. It supports more C compilers than
331
331
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
333
333
<https://github.com/numpy/numpy/pull/18713> `_ (when it was rejected, numpy
334
334
still had code for compatibility with Python 2.7).
335
335
You can’t perform that action at this time.
0 commit comments