ordering with duck typing in 3.1
Jon Clements
joncle at googlemail.com
Mon Apr 9 12:21:39 EDT 2012
On Monday, 9 April 2012 12:33:25 UTC+1, Neil Cerutti wrote:
> On 2012-04-07, Jon Clements <joncle at googlemail.com> wrote:
> > Any reason you can't derive from int instead of object? You may
> > also want to check out functions.total_ordering on 2.7+
>
> functools.total_ordering
>
> I was temporarily tripped up by the aforementioned documentation,
> myself.
>
> --
> Neil Cerutti
Oops. I sent it from a mobile tablet device - I got auto-corrected. But yes, it is functools.total_ordering - TY you Neil.
Jon.
More information about the Python-list
mailing list