Skip to content

Is np.empty(..., dtype=object) guaranteed to fill the array with None? #6367

@anntzer

Description

@anntzer

Currently, np.empty(..., dtype=object) fills the array with None, which is certainly a very reasonable (though undocumented, afaict) behavior. Is this guaranteed? (Note that the other "more obvious" way of creating such an array, np.fill(..., None), does not work, see #6366.)

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