[Numpy-discussion] NpyIter_MultiNew doesn't preserve the subclass of the array even without NPY_ITER_NO_SUBTYPE flag

Никита Карташов snailandmail at gmail.com
Sun Apr 22 07:29:36 EDT 2018


Hi everyone,

@cournape and I hit a problem trying to fix this issue: https://github.com/numpy/numpy/issues/10933 <https://github.com/numpy/numpy/issues/10933>
In short, the C implementation for `where` depends on the array created by NpyIter_MultiNew and it seems that there is no way to get the subclass from the iterator (even when all of the initial arrays are subclasses). Here is the gist with reproduction steps: https://gist.github.com/nkartashov/6eb56f942a18c7ee237689f9c71a3b27 <https://gist.github.com/nkartashov/6eb56f942a18c7ee237689f9c71a3b27>
Could anyone help us with this problem?

With regards,
Nikita Kartashov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180422/e2ccaba8/attachment.html>


More information about the NumPy-Discussion mailing list