summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-03-29 13:46:39 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2021-03-29 14:03:47 -0500
commita115369c630fd373acbb80464a0122722a521185 (patch)
treece78cf636bf0a404f806328dbbf05f1016227912 /doc/source/reference/c-api
parentb6a1677133efedefabe791ec532e08005d903135 (diff)
downloadnumpy-a115369c630fd373acbb80464a0122722a521185.tar.gz
DEP: Disable PyUFunc_GenericFunction and PyUFunc_SetUsesArraysAsData
Both functions have been deprecated in 1.19.x without complaints (so far). The first function is largely identical to a Python ufunc call. The second function had served internal NumPy purposes until NumPy 1.6 (probably), and since then had a comment that it should probably be removed (it was not documented).
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/ufunc.rst14
1 files changed, 0 insertions, 14 deletions
diff --git a/doc/source/reference/c-api/ufunc.rst b/doc/source/reference/c-api/ufunc.rst
index 9eb70c3fb..95dc47839 100644
--- a/doc/source/reference/c-api/ufunc.rst
+++ b/doc/source/reference/c-api/ufunc.rst
@@ -283,20 +283,6 @@ Functions
signature is an array of data-type numbers indicating the inputs
followed by the outputs assumed by the 1-d loop.
-.. c:function:: int PyUFunc_GenericFunction( \
- PyUFuncObject* self, PyObject* args, PyObject* kwds, PyArrayObject** mps)
-
- .. deprecated:: NumPy 1.19
-
- Unless NumPy is made aware of an issue with this, this function
- is scheduled for rapid removal without replacement.
-
- Instead of this function ``PyObject_Call(ufunc, args, kwds)`` should be
- used. The above function differs from this because it ignores support
- for non-array, or array subclasses as inputs.
- To ensure identical behaviour, it may be necessary to convert all inputs
- using ``PyArray_FromAny(obj, NULL, 0, 0, NPY_ARRAY_ENSUREARRAY, NULL)``.
-
.. c:function:: int PyUFunc_checkfperr(int errmask, PyObject* errobj)
A simple interface to the IEEE error-flag checking support. The