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

Re: Fwd: Re: [pygame] SDL-ctypes progress



On, Thu Jun 15, 2006, Rene Dudfield wrote:

> 
> Another option...
> Maybe instead of surf.pixels.as_something()...
> 
> surf.pixels
> surf.pixels_numpy
> surf.pixels_numarray
> surf.pixels_numeric
> surf.pixels_yet_another_numeric_type_when_it_comes_up
> surf.pixels_num

Isn't that a bit too much for just one getter, which returns basically
the similar stuff? In my opinion, this just adds an unnecessary
complexity to the surface.

I would prefer something like the following:

surf.pixels
for the default, e.g. either upcoming python array or numeric

surf.get_pixels(type_identifier)
for a specific type like above.

Regards
Marcus

Attachment: pgpySI88MH86z.pgp
Description: PGP signature