[Numpy-discussion] A simple question about type().

Alexandre Alexandre.Fayolle at logilab.fr
Thu Mar 11 05:55:05 EST 2004

On Thu, Mar 11, 2004 at 02:25:53PM +0100, Andrea Riciputi wrote:
> You are right! But I can't understand why. When I try type() with an 
> array I get:
> type(my_array)
> <type 'array'>
> but:
> type(my_array) is array
> False
> Can someone explain this?

array is a function. try "type(array)", and print(array) to check. 

Alexandre Fayolle                              LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20040311/6e6a29e5/attachment-0001.sig>

More information about the NumPy-Discussion mailing list