Hi,

On Wed, Jul 28, 2010 at 6:49 PM, John Salvatier
<jsalv...@u.washington.edu> wrote:
> I think this is just Python behavior; comparing python ints and strs also
> gives False:
>
> In [45]: 8 == 'L'
> Out[45]: False

Just to be clear, from:

>>> a = np.array(['a','b'])
>>> a == 1

I was expecting:

array([ False, False], dtype=bool)

For:

> In [22]: a = np.array(['a','b'])
>
> In [23]: a + 'c'

etc - it makes sense to me that I can't add to numpy strings.

Best,

Matthew
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to