Re: Difference: __iadd__ and __add__

2006-02-18 Thread Peter Hansen
Jonathan Gardner wrote: > I would like to point out that it isn't entirely obvious where to find > documentation for this particular thing. I know from experience where > to go, but I remember spending a long time trying to hunt this down. I'd like to point out it should be obvious, at least as fa

Re: Difference: __iadd__ and __add__

2006-02-17 Thread Jonathan Gardner
I would like to point out that it isn't entirely obvious where to find documentation for this particular thing. I know from experience where to go, but I remember spending a long time trying to hunt this down. For reference, you may want to check out the index of the language reference manual. ht

Re: Difference: __iadd__ and __add__

2006-02-17 Thread tomerfiliba
__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. -- http://mail.python.org/mailman/listinfo/python-list

Difference: __iadd__ and __add__

2006-02-17 Thread Ronny Mandal
Can someone please explain or point me to articles regarding these two methods? Thanks. -- http://mail.python.org/mailman/listinfo/python-list