[Numpy-discussion] Deprecate unused but exposed C-API functions

Sebastian Berg sebastian at sipsolutions.net
Fri Jan 24 20:04:16 EST 2020


On Fri, 2020-01-24 at 17:56 -0700, Charles R Harris wrote:
> 
> 
> On Fri, Jan 24, 2020 at 11:29 AM Sebastian Berg <
> sebastian at sipsolutions.net> wrote:
> > Hi all,
> > 
<snip>
> > 
> > My idea is to add the deprecation warning now, and if nobody
> > notices it
> > remove them as soon as 1.19 is released.
> > 
> 
> 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.
> 

To be clear: removal in this sense for me would mean that they exist as
a stub which always raises an error.
In principle they could be set to NULL as well, but I think the always-
error solution is just as good probably.

- Sebastian


> Chuck
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200124/608ee991/attachment.sig>


More information about the NumPy-Discussion mailing list