Sorting: too different times. Why?

Dave Angel davea at ieee.org
Sun Nov 22 13:28:55 CET 2009


n00m wrote:
> Any comment:
>
> <snip>
> def v_cmp(v1, v2):
>     if v1.x < v2.x and v1.y > v2.y:
>         return -1
>     return 0
>
>   
>
The second part of the compound if is backwards.  So if this is headed 
for production code, it better get fixed.

DaveA




More information about the Python-list mailing list