array-api icon indicating copy to clipboard operation
array-api copied to clipboard

feat!: return tuples rather than lists in `meshgrid`, `broadcast_arrays`, and `info.devices`

Open kgryte opened this issue 2 months ago • 0 comments

This PR

  • resolves https://github.com/data-apis/array-api/issues/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 avatar Nov 13 '25 09:11 kgryte