Forwarded message from Mike Fletcher:
---------------------------------------------------------
I'm wondering if we can just always have SDL functions return new
"ctypes" style arrays. Then provide convenience functions for wrapping
those into array types for other libraries.
pal = mysurf.format.palette
palette = SDL.numpy.Convert(pal.ncolors, pal, colors)
Then again, we may prefer more specific array building functions.
palette_array = SDL.numeric.PaletteArray(mysurf.format.palette)
pixel_array = SDL.numeric.PixelsArray(mysurf)
I'd considered this, but it winds up *requiring* that code be written
explicitly for the ctypes version of the library, which I'd defined (for
my project, SDL-ctypes) as not being allowable (since if you've written
the code for Numeric + PyOpenGL you always expect to get back
Numeric-array-compatible objects).
Sorry for the delay in responding to this,
Mike