On 3/24/07, Robert Kern <[EMAIL PROTECTED]> wrote:
Charles R Harris wrote: > In [10]: isscalar('hello world') > Out[10]: True I would say that, intrinsically, yes, strings are constructed as sequences of other things. However, essentially every use case I have for *testing* whether or not something is a sequence (or inversely, a scalar), I want strings to answer as "not a sequence".
I see 'is_string_like', 'iscomplex', 'iscomplexobj', 'isfinite', 'isfortran', 'ishold', 'isinf', 'isinteractive', 'isnan', 'isneginf', 'isposinf', 'ispower2', 'isreal', 'isrealobj', 'isscalar', 'issctype', 'issubclass_', 'issubdtype', 'issubsctype', But apparently none of them test for a scalar number. That is a strange functionality to be missing. Chuck
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion