[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Surfarray



Ian Mallett wrote:
On Jan 22, 2008 10:41 PM, Lenard Lindstrom <len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>> wrote:

    Either way you should be able to use the Numeric installer at the
    pygame
    download page.

Done, and works! Still, I'm confused about why NumArray, Numeric, and Numpy aren't the same module.
Ian
In Pygame 1.8 surfarray supports both Numeric and Numpy. Under the hood it simply loads the appropriate Pygame module for the desired array type. Numeric, NumArray and Numpy have differing C APIs so need separate code. And they also differ at the Python level. Just dropping in Numpy for Numeric will not always work. And NumArray is even less compatible.

--
Lenard Lindstrom
<len-l@xxxxxxxxx>