Nums! A new name for the group (Numpy, Numeric, Numarray) is Nums.
+1 for polymorphism. Although the current api is good too.
You can always check the return type if you need to know its type.
The nums are similar enough for lots of uses. Often only one type
will be installed on someones machine.
pixels.as_nums() ? which returns a globally registered num? Or
as_globally_registered_array() for a really long name.
Ok, I can't think of a good name for it.
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
The pixels_num would be the globally registered type. There would
still be surf.pixels the same as it is now. The globally registered
type would be discovered and set the same way that pyopengl does.
What about that?