From: Francesc A. <fa...@ca...> - 2006-10-03 16:55:40
|
Hi, I thought that numpy.isscalar was a good way of distinguising a numpy scala= r=20 from a python scalar, but it seems not: >>> numpy.isscalar(numpy.string_('3')) True >>> numpy.isscalar('3') True Is there an easy (and fast, if possible) way to check whether an object is = a=20 numpy scalar or a python one? Thanks, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |