[Numpy-discussion] help! type 'float64scalar' is not type 'float'

Travis Oliphant oliphant.travis at ieee.org
Thu Aug 3 00:43:48 CDT 2006


Sebastian Haase wrote:
> Thanks,
> I just found
> numpy.isscalar() and numpy.issctype()   ?
> These sound like they would do what I need - what is the difference 
> between the two ?
>   
Oh, yeah. 

numpy.issctype works with type objects
numpy.isscalar works with instances

Neither of them distinguish between scalars and "numbers." 

If you get errors with isscalar it would be nice to know what they are.

-Travis





More information about the Numpy-discussion mailing list