Skip to content

Ufunc overrides should always raise TypeError if any arguments set __array_ufunc__ = None #9011

Closed
@shoyer

Description

@shoyer

Following up on our discussion in #8247 (comment), we need to switch ufunc overrides to always raise TypeError if any arguments set __array_ufunc__ = None. The avoids potential for confusion with x + y and np.add(x, y) yielding different results.

This is a blocker for the 1.13.0 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions