[Numpy-discussion] recarray fun

Christopher Barker Chris.Barker at noaa.gov
Wed Apr 30 16:07:11 EDT 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 at noaa.gov




More information about the NumPy-Discussion mailing list