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
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