Skip to content

asarray is not strict enough #118

Closed

Description

@lucascolley

The spec requires asarray to support "a (possibly nested) sequence of Python scalars", but not nested sequences of arrays.

https://data-apis.org/array-api/draft/API_specification/generated/array_api.asarray.html

Activity

  1. ev-br commented on Mar 28, 2025

    @ev-br
    Member

    This just came up in #70 (comment), motivated by scikit-learn adoption work.

    AFAICS, it is indeed unspecified in the spec and inconsistent across array libraries. Thus:

  2. added this to the 2.4 milestone on Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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