array.savespace(1)By the way, NumPy doesn't do this automatic upcasting. It was a source of frustration at first since it subtly broke the Pygame surfarray example. But I see now why the change.
Lenard Ian Mallett wrote:
The first line gives: (300, 400) (16711680, 65280, 255, -16777216) (16, 8, 0, 24) The second crashes with an AttributeError at "dtype".