Re: [Numpy-discussion] newbie question about boolean testing of array equality result

2011-03-23 Thread Jonathan Hartley
11 14:59, Robert Kern wrote: > On Wed, Mar 23, 2011 at 09:29, Jonathan Hartley wrote: >> Hey people, >> >> I'm writing an application in which we evaluate user-supplied Python >> expressions. >> >> Sometimes, we want to do an equality te

[Numpy-discussion] newbie question about boolean testing of array equality result

2011-03-23 Thread Jonathan Hartley
-wise manner, but I think it's more important for __eq__ to follow it's usual semantics of returning a boolean. I'd way prefer it if the element-wise equality array generation was exposed as a different method. Have I misunderstood the situation greatly? Thanks for any pointers