ordering with duck typing in 3.1

Jon Clements joncle at googlemail.com
Sat Apr 7 15:36:54 EDT 2012


Any reason you can't derive from int instead of object? You may also want to check out functions.total_ordering on 2.7+



More information about the Python-list mailing list