Vladimir

6%
Flag icon
The special method that makes += work is __iadd__ (for “in-place addition”). However, if __iadd__ is not implemented, Python falls back to calling __add__.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview