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 @@ -2376,10 +2376,11 @@ left undefined.
2376
2376
2377
2377
.. note ::
2378
2378
2379
- If the right operand's type is a subclass of the left operand's type and that
2380
- subclass provides the reflected method for the operation, this method will be
2381
- called before the left operand's non-reflected method. This behavior allows
2382
- subclasses to override their ancestors' operations.
2379
+ If the right operand's type is a subclass of the left operand's type and
2380
+ that subclass provides a different implementation of the reflected method
2381
+ for the operation, this method will be called before the left operand's
2382
+ non-reflected method. This behavior allows subclasses to override their
2383
+ ancestors' operations.
2383
2384
2384
2385
2385
2386
.. method :: object.__iadd__(self, other)
@@ -2771,6 +2772,6 @@ An example of an asynchronous context manager class::
2771
2772
method—that will instead have the opposite effect of explicitly
2772
2773
*blocking * such fallback.
2773
2774
2774
- .. [# ] For operands of the same type, it is assumed that if the non-reflected method
2775
- ( such as :meth: `__add__ `) fails the operation is not supported, which is why the
2776
- reflected method is not called.
2775
+ .. [# ] For operands of the same type, it is assumed that if the non-reflected
2776
+ method -- such as :meth: `__add__ ` -- fails then the overall operation is not
2777
+ supported, which is why the reflected method is not called.
You can’t perform that action at this time.
0 commit comments