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

Re: [pygame] surfarray on 64-bit machines



Lenard Lindstrom wrote:

It is a two dimension array, so I am surprised the single index slice [:] even works.

Well, a 2d array can be thought of as a 1d array of 1d arrays,
so you're getting an array of all of those 1d arrays, making
another 2d array.

Seems to work that way in Numeric at least -- you get back a
view covering the whole of the original array.

--
Greg