[Numpy-discussion] Is a string a scalar type?

Robert Kern robert.kern@gmail....
Sat Mar 24 19:54:28 CDT 2007

Charles R Harris wrote:
> In [10]: isscalar('hello world')
> Out[10]: True

As far as numpy is concerned, they are.

>>> from numpy import *
>>> array('hello world')
array('hello world',

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list