Skip to content

BUG: on 32-bit linux build, int32 is missing from sctypes["int"] #26439

@mattip

Description

@mattip

Comes from scipy/scipy#20585 (comment).

It seems somehow sctypes["int"] is missing int32 in a 32-bit build of NumPy.

In 64-bit builds:

>>> from numpy._core._type_aliases import sctypes
>>> sctypes["int"]
[<class 'numpy.int8'>, <class 'numpy.int16'>, <class 'numpy.int32'>, <class 'numpy.int64'>]
>>> numpy.int32 == numpy.intc
True

In 32-bit builds:

>>> from numpy._core._type_aliases import sctypes
>>> sctypes["int"]
[<class 'numpy.int8'>, <class 'numpy.int16'>, <class 'numpy.intc'>, <class 'numpy.int64'>]
>>> numpy.intc == numpy.int32
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions