Skip to content

Commit

Permalink
DOC: Document deprecation of C-API functions
Browse files Browse the repository at this point in the history
These functions are believed to be unused, or at least largely
unused.
  • Loading branch information
seberg committed Feb 1, 2020
1 parent 468ccdd commit 5ee5012
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/release/upcoming_changes/15427.deprecation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Deprecation of probably unused C-API functions
----------------------------------------------
The following C-API functions are probably unused and have been
deprecated:

* ``PyArray_GetArrayParamsFromObject``
* ``PyUFunc_GenericFunction``
* ``PyUFunc_SetUsesArraysAsData``

In most cases ``PyArray_GetArrayParamsFromObject`` should be replaced
by converting to an array, while ``PyUFunc_GenericFunction`` can be
replaced with ``PyObject_Call`` (see documentation for details).

0 comments on commit 5ee5012

Please sign in to comment.