Skip to content

asarray is not strict enough #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lucascolley opened this issue Jan 4, 2025 · 1 comment · Fixed by #147
Closed

asarray is not strict enough #118

lucascolley opened this issue Jan 4, 2025 · 1 comment · Fixed by #147
Milestone

Comments

@lucascolley
Copy link
Member

lucascolley commented Jan 4, 2025

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

@ev-br
Copy link
Member

ev-br commented Mar 28, 2025

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants