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

Andrea Riciputi ariciputi at pito.com
Thu Mar 11 05:37:10 EST 2004

You are right! But I can't understand why. When I try type() with an 
array I get:

<type 'array'>


type(my_array) is array

Can someone explain this?


On 11 Mar 2004, at 13:42, Paulo J. S. Silva wrote:

> Hi,
> Funny, I have just entered the list and I can answer this one!
> Try
> type(my_array) is arraytype
> That worked to me.
> Best,
> Paulo
> -- 
> Paulo José da Silva e Silva
> Professor Assistente do Dep. de Ciência da Computação
> (Assistant Professor of the Computer Science Dept.)
> Universidade de São Paulo - Brazil
> e-mail: rsilva at ime.usp.br          Web: http://www.ime.usp.br/~rsilva
> Teoria é o que não entendemos o    (Theory is something we don't)
> suficiente para chamar de prática. (understand well enough to call)
>                                    (practice)
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Andrea Riciputi

"Science is like sex: sometimes something useful comes out,
   but that is not the reason we are doing it" -- (Richard Feynman)

More information about the NumPy-Discussion mailing list