Re: [Numpy-discussion] workaround for searchsorted with strings?

2008-05-22 Thread Lewis Hyatt
Oh sorry, my example was dumb, never mind. It looks like this way does work after all. Can someone please confirm for me, though, that the workaround I am using (just changing to the wider string type) is reliable? Thanks, sorry for the noise. -Lewis

[Numpy-discussion] workaround for searchsorted with strings?

2008-05-22 Thread Lewis Hyatt
Hello- I see from this thread: http://article.gmane.org/gmane.comp.python.numeric.general/18746/ that searchsorted does not work correctly with strings. Is there a workaround, though, that I can use with 1.0.4 until there is a new official numpy release that includes the fix mentioned in the ref