[Numpy-discussion] recarray fun

Christopher Barker Chris.Barker@noaa....
Wed Apr 30 15:07:11 CDT 2008


Stéfan van der Walt wrote:
> That's the way, or just rgba_image.view(numpy.int32).

ah -- interestingly, I tried:

rgba_image.view(dtype=numpy.int32)

and got:

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
TypeError: view() takes no keyword arguments

Since it is optional, shouldn't it be keyword argument?

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov



More information about the Numpy-discussion mailing list