<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 7, 2021 at 8:34 PM Sebastian Berg <<a href="mailto:sebastian@sipsolutions.net">sebastian@sipsolutions.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I have opened a PR (<a href="https://github.com/numpy/numpy/pull/19188" rel="noreferrer" target="_blank">https://github.com/numpy/numpy/pull/19188</a>) to<br>
*finalize* NEP 35:<br>
<br>
<a href="https://numpy.org/neps/nep-0035-array-creation-dispatch-with-array-function.html" rel="noreferrer" target="_blank">https://numpy.org/neps/nep-0035-array-creation-dispatch-with-array-function.html</a><br>
<br>
Which added `like=` keyword argument to `np.array`, `np.asarray`,<br>
`np.arange`, etc. as final.<br>
<br>
<br>
The previous acceptance mail was here: <br>
<a href="https://mail.python.org/pipermail/numpy-discussion/2021-May/081761.html" rel="noreferrer" target="_blank">https://mail.python.org/pipermail/numpy-discussion/2021-May/081761.html</a><br>
<br>
But, since it may have flown under the radar.  Please don't hesitate to<br>
voice any concerns!<br>
We are planning to include this finalization in the NumPy 1.21 release.<br>
So if you are worried about it, please make sure to voice that soon<br>
since the release process for 1.21 started.<br>
<br>
<br>
I had previously noted some possible concerns here:<br>
<a href="https://github.com/numpy/numpy/issues/17075" rel="noreferrer" target="_blank">https://github.com/numpy/numpy/issues/17075</a><br>
but in the current version, the `like=` argument is strict about types<br>
and will raise for `np.array(3, like=3)`.  With that limitation, most<br>
of those points seem unproblematic.<br></blockquote><div><br></div><div>Thanks Sebastian. I agree. And IIRC there haven't been problems with the current implementation in 1.20 reported, so we should be all good here.</div><div><br></div><div>Cheers,<br></div><div>Ralf</div><div><br></div></div></div>