[SciPy-user] histogram bug ?

Alan G Isaac aisaac at american.edu
Fri Dec 30 14:32:00 CST 2005

On Fri, 30 Dec 2005, Alan G Isaac apparently wrote: 
> should a.sort() violate Pythonic expectations by returning a? 


Currently scipy core does not follow the Python or numarray 
convention of having the sort method sort the array in place
and return None.  Instead it returns a sorted copy of the 
old array, and leaves the old array untouched.

This seems like a sure "gotcha".

Perhaps it would be better to follow the Python and numarray 
convention for the `sort` method and have a new sorted() 
method handle the current behavior.

Alan Isaac

More information about the SciPy-user mailing list