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

Matthew Brett matthew.brett@gmail....
Sun Feb 10 17:15:27 CST 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