np.array copy=False vs copy=None: portable "copy only if needed" across NumPy 1.x and 2.x
Goal I maintain a library that wraps user inputs with np.array and must avoid unnecessary copies of large ndarrays while still guaranteeing an array result. The code has to run against both a NumPy 1.x line and NumPy 2.x during a transition period, so I need one spelling of "copy only if a copy is actually required" that behaves predictably on both. Constrai