Hi David, New to the listserv, but, maybe you can provide a reproducible example?
Steven On Wed, Dec 25, 2024, 2:19 PM Israel, Daniel M via NumPy-Discussion < [email protected]> wrote: > I was updating some code that uses a custom array container built with the > mixin library. Specifically, I was trying to eliminate some warnings due > to the change to the __array__ interface to add a copy argument. In doing > so, I discovered that, for two objects u, v in my container class, the code: > > u[…] = v > > performs a copy on v. Specifically, it calls __array__() with copy=True. > This seems unnecessary and wasteful of memory. Can someone explain to me > what is happening here? > > Thanks. > > — > Daniel Israel > XCP-4: Continuum Models and Numerical Algorithms > [email protected] > > _______________________________________________ > NumPy-Discussion mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: [email protected] >
_______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: [email protected]
