Bugs item #1655683, was opened at 2007-02-09 01:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1655683&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jeffrey Miller (jsmgoogle)
Assigned to: Nobody/Anonymous (nobody)
Summary: 3.4.1 comparison methods content

Initial Comment:
From: Jeffrey Miller <[EMAIL PROTECTED]>

At this URL and this section of the reference:

http://docs.python.org/ref/customization.html

3.4.1 Basic Customization

The existing text reads, in part:

"""
    There are no reflected (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 is incorrect.  Although __le__ and __ge__ are symmetric, as are __lt__ and 
__gt__, they are not boolean inverse operations if the arguments are swapped.

Instead the text should pair __lt__ with __ge__, __le__ with __gt__ .

Correcting the given text, it should read:

"""
    There are no reflected (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 __ge__() are each other's reflection, 
__le__() and __gt__() are each other's reflection, and __eq__() and __ne__() 
are their own reflection.
"""


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1655683&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to