This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Reflected (swapped) operations overridden by subclasses
Type: Stage:
Components: Documentation Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, polushin
Priority: normal Keywords:

Created on 2006-07-30 19:13 by polushin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29381 - (view) Author: Andrei Polushin (polushin) Date: 2006-07-30 19:13
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).
msg29382 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-30 20:23
Logged In: YES 
user_id=849994

Fixed in rev. 50990, 50991 (2.4). Thanks!
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43747
2006-07-30 19:13:04polushincreate