Skip to content

object with 'dtype' property crashes numpy #3614

@mwiebe

Description

@mwiebe

The following code crashes numpy (latest master):

import numpy as np
class crashnumpy(object):
    @property
    def dtype(self):
        return self
np.array([1], dtype=crashnumpy())

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions