[Python-ideas] cmp and sorting non-symmetric types

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Nov 15 03:21:37 CET 2007


Luke Stebbing wrote:
> set only needs 4 values, but other types need more.

A type can always override the 6 separate methods if
it needs to. I'm not proposing to replace these, only
to provide a simpler alternative that covers most use
cases.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Python-ideas mailing list