Message29381
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). |
|
Date |
User |
Action |
Args |
2007-08-23 14:41:43 | admin | link | issue1531349 messages |
2007-08-23 14:41:43 | admin | create | |
|