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

Robert Kern robert.kern@gmail....
Sun Feb 10 17:51:05 CST 2008


On Feb 10, 2008 5:15 PM, Matthew Brett <matthew.brett@gmail.com> wrote:
> 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
>
> ?

Not really, no. Can you describe your use case in more detail?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list