[Numpy-discussion] Is a string a scalar type?
Charles R Harris
Sat Mar 24 20:23:48 CDT 2007
On 3/24/07, Robert Kern <firstname.lastname@example.org> wrote:
> Charles R Harris wrote:
> > In : isscalar('hello world')
> > Out: True
> I would say that, intrinsically, yes, strings are constructed as sequences
> other things. However, essentially every use case I have for *testing*
> or not something is a sequence (or inversely, a scalar), I want strings to
> answer as "not a sequence".
But apparently none of them test for a scalar number. That is a strange
functionality to be missing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion