Skip to content

Commit

Permalink
Add a note about PyO3#844 below the list of reflected operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaled committed Aug 5, 2020
1 parent c55d64c commit 1c58fc7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions guide/src/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,11 @@ The reflected operations are also available:
The code generated for these methods expect that all arguments match the
signature, or raise a TypeError.

*Note*: Currently implementing the method for a binary arithmetic operations
(e.g, `__add__`) shadows the reflected operation (e.g, `__radd__`). This is
being addressed in [#844](https://github.com/PyO3/pyo3/issues/844). to make
these methods


This trait also has support the augmented arithmetic assignments (`+=`, `-=`,
`*=`, `@=`, `/=`, `//=`, `%=`, `**=`, `<<=`, `>>=`, `&=`, `^=`, `|=`):
Expand Down

0 comments on commit 1c58fc7

Please sign in to comment.