[Numpy-discussion] nonzero() behaviour has changed

Simon Burton simon at arrowtheory.com
Mon May 15 22:46:20 EDT 2006


On Mon, 15 May 2006 22:13:57 -0600
Travis Oliphant <oliphant.travis at ieee.org> wrote:

> 
> Chris Fonnesback releases quite up-to-date binary releases of NumPy and 
> SciPy for Mac OSX.

Yes:
http://homepage.mac.com/fonnesbeck/mac/index.html

> 
> An alternative solution is to use the functional form:
> 
> nonzero(a) works the same as a.nonzero() did before for backwards 
> compatibility. 
> 
> The behavior of a.nonzero() was changed for compatibility with numarray.

Is this a general strategy employed by numpy ? Ie. functions have old semantics,
methods have numarray semantics ?  Scary.

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the NumPy-Discussion mailing list