Difference: __iadd__ and __add__

tomerfiliba at gmail.com tomerfiliba at gmail.com
Fri Feb 17 21:02:14 EST 2006


__add__ is called for the + operator
__iadd__ is called for the += operator
if __iadd__ doesnt exist, fallbacks to __add__

you know what they say for such things: rtfm.




More information about the Python-list mailing list