![](https://secure.gravatar.com/avatar/4d021a1d1319f36ad861ebef0eb5ba44.jpg?s=120&d=mm&r=g)
Alexander Schmolck wrote:
What is wrong with this? ~ is bit-wise not and gives the correct answer, here.
You are mixing Object arrays and character arrays here and expecting too much. String arrays in Numeric and their relationship with object arrays have never been too useful. You need to be explicit about how 'ab' is going to be interpreted and do a == array('ab','O') to get what you were probably expecting.
I don't think this worked as you think it did (I looked at Numeric 21.3). num.zeros(2.0) works but it shouldn't. This is a bug that I'll fix. Shapes should be integers, not floats. If this was not checked before than that was a bug. It looks like it's always been checked differently for single-element tuples and scalars So, in short, I see only one small bug here. Thanks for testing things out. -Travis
participants (1)
-
Travis Oliphant