Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57812

Python3 doc, operator reflection

From Johannes Bauer <dfnsonfsduifb@gmx.de>
Newsgroups comp.lang.python
Subject Python3 doc, operator reflection
Date 2013-10-28 13:00 +0100
Message-ID <bd71ueFqcsiU1@mid.dfncis.de> (permalink)

Show all headers | View raw


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’s reflection, __le__() and __ge__() are each other’s reflection, and __eq__() and __ne__() are their own reflection.

But shouldn't __lt__ be the reflection or __ge__ and __gt__ the
reflection of __le__?

Best regards,
Johannes

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Python3 doc, operator reflection Johannes Bauer <dfnsonfsduifb@gmx.de> - 2013-10-28 13:00 +0100
  Re: Python3 doc, operator reflection Chris Angelico <rosuav@gmail.com> - 2013-10-28 23:23 +1100
    Re: Python3 doc, operator reflection Johannes Bauer <dfnsonfsduifb@gmx.de> - 2013-10-28 13:45 +0100
  Re: Python3 doc, operator reflection random832@fastmail.us - 2013-10-28 14:31 -0400

csiph-web