From: Alan G I. <ai...@am...> - 2006-05-18 14:42:14
|
> Alan G Isaac wrote: >> 1. I hope for an array 'a' that nonzero(a) and a.nonzero() >> will produce the same result, whatever convention is >> chosen. On Wed, 17 May 2006, Travis Oliphant apparently wrote: > Unfortunately this won't work because the nonzero(a) behavior was > inherited from Numeric but the .nonzero() from numarray. > This is the price of trying to merge two user groups. The little bit > of pain is worth it, I think. One last comment: This is definitely trading off surprises for future users against ease for incoming Numeric users. So ... might the best to be to make numpy consistent but, assuming the more consistent numarray behavior is chosen, provide the Numeric behavior as part of the compatability module? fwiw, Alan |