diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-09-10 17:05:20 +0300 | 
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-09-10 17:05:57 +0300 | 
| commit | eb84a830df62813f5af7f0144fc77444bf18f3a8 (patch) | |
| tree | c75036150f3584486bc2064572faa2fe2750ae8c /docs/library/array.rst | |
| parent | de981040b392685b0d7f2381a63526b71e633b9c (diff) | |
py/runtime: Implement dispatch for "reverse op" special methods.
If, for class X, X.__add__(Y) doesn't exist (or returns NotImplemented),
try Y.__radd__(X) instead.
This patch could be simpler, but requires undoing operand swap and
operation switch to get non-confusing error message in case __radd__
doesn't exist.
Diffstat (limited to 'docs/library/array.rst')
0 files changed, 0 insertions, 0 deletions
