30 Mar
2006
30 Mar
'06
7:55 p.m.
Simon Burton wrote:
a=numpy.array(list('foabcdeef'),dtype=numpy.dtype("O")) numpy.equal(a,'f')
A couple of things:
1) dtype=numpy.dtype("O") is equivalent to dtype="O" 2) Because you have an object array this should work. You can work around the bug using numpy.equal(a,array('f','O')) -Travis