Stéfan van der Walt wrote: > At first, I also thought it might be more intuitive to return the > output array, but then I realised that it would make it more difficult > to realise that the operation is being performed in-place. Maybe it > is good to remind programmers of what happens under the hood, so that > they are not surprised later when their data is "corrupted".
That is essentially the core reason for the behavior of list.sort(). Cheers, Alan _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
