From: <fe...@la...> - 2004-03-11 15:22:32
|
As others have pointed out, array is a function. You want ArrayType. > type(my_array) is ArrayType > True -r Andrea Riciputi writes: > You are right! But I can't understand why. When I try type() with an=20 > array I get: > > type(my_array) > <type 'array'> > > but: > > type(my_array) is array > False > > Can someone explain this? > > Cheers, > Andrea. > > 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 > > --=20 > > Paulo Jos=E9 da Silva e Silva > > Professor Assistente do Dep. de Ci=EAncia da Computa=E7=E3o > > (Assistant Professor of the Computer Science Dept.) > > Universidade de S=E3o Paulo - Brazil > > > > e-mail: rs...@im... Web: http://www.ime.usp.br/~rsilva > > > > Teoria =E9 o que n=E3o entendemos o (Theory is something we don't) > > suficiente para chamar de pr=E1tica. (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_id=1470&alloc_id638&op=3Dclick > > _______________________________________________ > > Numpy-discussion mailing list > > Num...@li... > > 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) > > > > ------------------------------------------------------- > 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_id=1470&alloc_id=3638&op=click > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > |