[Numpy-discussion] how to work with numpy.int8 in c
Tue Mar 2 14:09:40 CST 2010
James Bergstra wrote:
> Maybe I'm missing something... but I don't think I want to create an array.
> In : import numpy
> In : type(numpy.int8())
> Out: <type 'numpy.int8'>
> In : isinstance(numpy.int8(), numpy.ndarray)
> Out: False
right, it's a type object:
In : type(np.uint8)
Out: <type 'type'>
> I want to create one of those numpy.int8 guys.
There's got to be a a way, though I can't tell you what it is. But I'm
curious why you want that from C. It's a Python object, why not create
it in Python?
Christopher Barker, Ph.D.
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
More information about the NumPy-Discussion