Vladimir

55%
Flag icon
If a doesn’t have __add__, or calling it returns NotImplemented, check if b has __radd__, then call b.__radd__(a) and return result unless it’s NotImplemented.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview