On Tue, 11 Jul 2006, Norbert Nemec apparently wrote: 
>     else: # for compatibility: 
>         set = {} 
>         for item in inseq: 
>             set[item] = None 
>         if sort: 
>             return asarray(sorted(set.keys())) 
>        else: 
>             return asarray(set.keys()) 

I'm currently in major caffeine deficit,
but aside from backward compatability,
how is this better than:
        else: #for compatability
                items = list(set(inseq))
                if sort: items.sort()
        return asarray(items)

Alan Isaac

PS Actually, making a list of a set may already sort?
No time to check now ...
PPS For to 2.3, need set = sets.Set




-------------------------------------------------------------------------
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