|
From: Russel H. <ru...@ap...> - 2006-02-13 18:07:54
|
I am converting some numarray code to numpy and I noticed this behavior: >>> from numpy import * >>> sta=array(['abc', 'def', 'ghi']) >>> stb=array(['abc', 'jkl', 'ghi']) >>> sta==stb False I expected the same as this: >>> a1=array([1,2,3]) >>> a2=array([1,4,3]) >>> a1==a2 array([True, False, True], dtype=bool) I am trying to figure out how to fix this now... |