On 8/29/06, David M. Cooke <[EMAIL PROTECTED]> wrote:
> On Tue, 29 Aug 2006 14:03:39 -0700
> Tim Hochberg <[EMAIL PROTECTED]> wrote:

> > b = a.sort()   # Returns a copy
> > a.sort(out=a) # Sorts a in place
> > a.sort(out=c) # Sorts a into c (probably just equivalent to c = a.sort()
> > in this case since we don't want to rewrite the sort routines)
>
> Ugh. That's completely different semantics from sort() on lists, so I think
> it would be a source of bugs (at least, it would mean keeping two different
> ideas of .sort() in my head).

Agreed.  Except where very well justified (such as slicing returning
views for memory reasons), let's keep numpy arrays similar to native
lists in their behavior...

Special cases aren't special enough to break the rules.

and all that :)

Cheers,

f

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to