[ python-Bugs-1531349 ] Reflected (swapped) operations overridden by subclasses
SourceForge.net
noreply at sourceforge.net
Sun Jul 30 22:23:45 CEST 2006
Bugs item #1531349, was opened at 2006-07-30 19:13
Message generated for change (Comment added) made by gbrandl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1531349&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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrei Polushin (polushin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Reflected (swapped) operations overridden by subclasses
Initial Comment:
In Python 2.5b2 Documentation:
Python Reference Manual
Section 3.4.7 Emulating numeric types
<http://docs.python.org/dev/ref/numeric-types.html>
Note to description of __radd__, __rsub__, etc.
specifies that "this method will be called before the
right operand's non-reflected method."
Should replace RIGHT with LEFT here. The correct phrase
is "this method will be called before the LEFT
operand's non-reflected method."
For example, reader should clearly understand that
"RIGHT.__radd__ will be called before the LEFT.__add__"
in case when type(RIGHT) is subclass of type(LEFT).
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2006-07-30 20:23
Message:
Logged In: YES
user_id=849994
Fixed in rev. 50990, 50991 (2.4). Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1531349&group_id=5470
More information about the Python-bugs-list
mailing list