[Numpy-discussion] how to recognize a numpy-scalar type at the C level and how to convert
oliphant at ee.byu.edu
Fri Jan 19 19:24:16 CST 2007
Sebastian Haase wrote:
>I finally bought the numpy-book.
>Browsing through the 370 pages I found this:
>PyArray IsScalar (op, cls)
>Evaluates true if op is an instance of Py<cls>ArrType Type.
>Is this what I need to check for a given scalar type.
Yes. Remember that cls can be a "Generic Class" as well to test for
Integers, Floats, etc.
More information about the Numpy-discussion