File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2371,10 +2371,11 @@ left undefined.
2371
2371
2372
2372
.. note ::
2373
2373
2374
- If the right operand's type is a subclass of the left operand's type and that
2375
- subclass provides the reflected method for the operation, this method will be
2376
- called before the left operand's non-reflected method. This behavior allows
2377
- subclasses to override their ancestors' operations.
2374
+ If the right operand's type is a subclass of the left operand's type and
2375
+ that subclass provides a different implementation of the reflected method
2376
+ for the operation, this method will be called before the left operand's
2377
+ non-reflected method. This behavior allows subclasses to override their
2378
+ ancestors' operations.
2378
2379
2379
2380
2380
2381
.. method :: object.__iadd__(self, other)
@@ -2773,6 +2774,6 @@ An example of an asynchronous context manager class::
2773
2774
method—that will instead have the opposite effect of explicitly
2774
2775
*blocking * such fallback.
2775
2776
2776
- .. [# ] For operands of the same type, it is assumed that if the non-reflected method
2777
- ( such as :meth: `__add__ `) fails the operation is not supported, which is why the
2778
- reflected method is not called.
2777
+ .. [# ] For operands of the same type, it is assumed that if the non-reflected
2778
+ method -- such as :meth: `__add__ ` -- fails then the overall operation is not
2779
+ supported, which is why the reflected method is not called.
You can’t perform that action at this time.
0 commit comments