numpy 2.0: a possible API inconsistency in numpy.ndarray.astype
(copy semantics) ?
#25925
Milestone
8000
numpy.ndarray.astype
(copy semantics) ?
#25925
As I'm adapting astropy to the new
copy
semantics from #25168 and #25922, I observe thatnumpy.ndarray.astype
wasn't updated to follow these changes. As a result, it still supports the old semantics wherecopy=False
means "copy only if you must" but never raises an error. Is that intended ?numpy.astype
, introduced in #25079, is also affected by this question.The text was updated successfully, but these errors were encountered: