[Numpy-discussion] Setting contents of buffer for array object

Matthew Brett matthew.brett at gmail.com
Sun Feb 10 18:15:27 EST 2008


Hi,

I am sorry if I have missed something obvious, but is there any way in
python of doing this:

import numpy as np
a = np.arange(10)
b = np.arange(10)+1
a.data = b.data # raises error, but I hope you see what I mean

?

Thanks a lot for any pointers.

Matthew



More information about the NumPy-Discussion mailing list