Re: total_ordering behaviour

2011-07-20 Thread risboo6909
On Jul 20, 7:39 pm, Ian Kelly wrote: > On Wed, Jul 20, 2011 at 4:18 AM, risboo6909 wrote: > > Hello all, > > > I've noticed some strange behaviour of functools.total_ordering > > decorator, at least it seems strange to me. > > Looks like this is already kn

total_ordering behaviour

2011-07-20 Thread risboo6909
Hello all, I've noticed some strange behaviour of functools.total_ordering decorator, at least it seems strange to me. Let's consider code snippet below import functools @functools.total_ordering class MyComparableType(object): def __init__(self, value, ref): self.value = value