ordering with duck typing in 3.1

Neil Cerutti neilc at norwich.edu
Mon Apr 9 07:33:25 EDT 2012


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



More information about the Python-list mailing list