Skip to content

Promoters are matching too broadly #76

@seberg

Description

@seberg

The promoters are matching PyArrayDescr_Type which is far too broadly, since they don't actually know how to do the right thing for NumPy inputs.

This breaks normal NumPy functioning. I get that it could be nice to just do a broad promotion rather than fine grained, but I don't understand that there is any reason for this here: They can just use Quaddtype (the only problem with that is that at times you have to add a combination of all promoters).

This issue means that the NumPy test-suite cannot pass when quaddtype is imported.

CC @SwayamInSync do you remember any reason for this?!

EDIT: And yes, I realize you need to register the promoter twice (and maybe more often, but I don't think you have that). And yes, it would be nice to modify things to allow this more conveniently, but we do need the precise version -- the convenience version may have to sacrifice having a defined order/priority.
It would likely be good to figure that out (i.e. ditching strict order by trusting promoters to do nothing or to do the right thing -- in which case we would have to continue with other promoters).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions