On Mon, Oct 28, 2013, at 8:00, Johannes Bauer wrote:
> Hi group,
>
> in http://docs.python.org/3/reference/datamodel.html#customization the
> doc reads:
>
> > There are no swapped-argument versions of these methods (to be used when
> > the left argument does not support the operation but the r
Am 28.10.2013 13:23, schrieb Chris Angelico:
> On Mon, Oct 28, 2013 at 11:00 PM, Johannes Bauer wrote:
>>> There are no swapped-argument versions of these methods (to be used when
>>> the left argument does not support the operation but the right argument
>>> does); rather, __lt__() and __gt__()
On Mon, Oct 28, 2013 at 11:00 PM, Johannes Bauer wrote:
>> There are no swapped-argument versions of these methods (to be used when the
>> left argument does not support the operation but the right argument does);
>> rather, __lt__() and __gt__() are each other’s reflection, __le__() and
>> __g
Hi group,
in http://docs.python.org/3/reference/datamodel.html#customization the
doc reads:
> There are no swapped-argument versions of these methods (to be used when the
> left argument does not support the operation but the right argument does);
> rather, __lt__() and __gt__() are each other’