Skip to content

Conversation

@kgryte
Copy link
Contributor

@kgryte kgryte commented Nov 13, 2025

This PR

  • resolves Should meshgrid return a list or a tuple of coordinate arrays? #938
  • updates meshgrid to return a tuple rather than a list. This follows NumPy and PyTorch.
  • updates broadcast_arrays to return a tuple rather than a list. This follows NumPy.
  • updates info.devices to return a tuple rather than a list. This ensures consistency with the rest of the specification where we always return tuples, rather than lists.

This changes benefits Array API consumers such as Numba, where working with tuples facilitates optimizations.

Note that this is a breaking specification change.

@kgryte kgryte added this to the v2025 milestone Nov 13, 2025
@kgryte kgryte added the API change Changes to existing functions or objects in the API. label Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change Changes to existing functions or objects in the API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should meshgrid return a list or a tuple of coordinate arrays?

1 participant