<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 24, 2020 at 11:29 AM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net">sebastian@sipsolutions.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I would like to deprecate three C-API functions (more may come later)<br>
in <a href="https://github.com/numpy/numpy/pull/15427" rel="noreferrer" target="_blank">https://github.com/numpy/numpy/pull/15427</a><br>
<br>
The functions are:<br>
  * PyArray_GetArrayParamsFromObject<br>
  * PyUfunc_GenericCall<br>
  * PyUFunc_SetUsesArraysAsData<br>
<br>
I could not find downstream usage for any of these and they seem useful<br>
only on first glance to me.<br>
<br>
The first one is too complex (regarding scalars), simply converting to<br>
an array first should be just as well.<br>
The second one is almost identical to `PyObject_Call`. And the third<br>
one is not even documented and while the idea is sound, I am not sure<br>
that there are any cases where it is useful [0]<br>
<br>
My idea is to add the deprecation warning now, and if nobody notices it<br>
remove them as soon as 1.19 is released.<br>
<br></blockquote><div><br></div><div>I don't think C-API functions should be removed. Deprecation is fine, but removal changes the customary order of the functions. If they cost nothing to maintain, just leave them alone with a note/documentation that there are preferable alternatives.</div><div><br></div><div>Chuck</div></div></div>