Christopher Barker wrote:

> While I'm a great advocate of the new array protocol, it seems 
> supporting the buffer protocol also would be a good idea. I've enclosed 
> some simple test code. It works with numarray, but not numpy 1.0b4

Instead of

   I.SetDataBuffer(some_array)

you can use

   I.SetDataBuffer(buffer(some_array))

and it seems to work on OS X with Python 2.4, numpy 1.0b2 and wxMac 2.6.3.3 .

-- 
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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to