Re: Do special functions need to have all kwargs/attributes/methods of ufuncs?

Evgeni Burovski <[email protected]> Thu, 21 Sep 2023 10:31:26 +0300
Newsgroups gmane.comp.python.scientific.devel
Message-ID <CAMRo0itTGPgaObEDsCu5PX_G96akvSRZft1bjCPKmJXZKDBQ3A@mail.gmail.com>
> On Wed, Sep 20, 2023 at 10:33 PM Albert Steppi <[email protected]> wrote:
>>
>> I think making something like isinstance(special.ndtr, np.ufunc) work would require some pretty ugly hackery, so I'd prefer to at least break this.

But it works today?

```
In [1]: import numpy as np

In [2]: import scipy.special as special

In [3]: isinstance(special.erf, np.ufunc)
Out[3]: True

In [4]: isinstance(special.ndtr, np.ufunc)
Out[4]: True
```
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]