Re: Python3 doc, operator reflection

2013-10-28 Thread random832
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

Re: Python3 doc, operator reflection

2013-10-28 Thread Johannes Bauer
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__()

Re: Python3 doc, operator reflection

2013-10-28 Thread 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__() are each other’s reflection, __le__() and >> __g

Python3 doc, operator reflection

2013-10-28 Thread Johannes Bauer
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’