[Numpy-discussion] Accepting NEP 35 `like=array_like` for use with `__array_function__`
sebastian at sipsolutions.net
Mon Jun 7 14:34:05 EDT 2021
I have opened a PR (https://github.com/numpy/numpy/pull/19188) to
*finalize* NEP 35:
Which added `like=` keyword argument to `np.array`, `np.asarray`,
`np.arange`, etc. as final.
The previous acceptance mail was here:
But, since it may have flown under the radar. Please don't hesitate to
voice any concerns!
We are planning to include this finalization in the NumPy 1.21 release.
So if you are worried about it, please make sure to voice that soon
since the release process for 1.21 started.
I had previously noted some possible concerns here:
but in the current version, the `like=` argument is strict about types
and will raise for `np.array(3, like=3)`. With that limitation, most
of those points seem unproblematic.
More information about the NumPy-Discussion