On Wed, 5 Jul 2000, Greg Ward wrote:
Well, it's a nice theory. It doesn't explain why '__add__()' works for
ExtensionClass while '__radd__()' does not; perhaps ExtensionClass
implements that much of Python's class semantics, but doesn't go as far
as '__radd__()'.
A quick note which you
On 06 July 2000, Pavlos Christoforou said:
A quick note which you probably already know:
grep add ExtensionClass.c gives:
[...lots...]
whereas grep radd ExtensionClass.c returns nothing
Yep, did the same myself shortly after posting. It's not really clear
what 'py__add__' is and how it
Hi all --
looks like ExtensionClass doesn't recognize/implement the '__radd__()'
protocol. Speculation below; first, a demonstration. Normal case: a
regular class Number that knows how to add itself to other number-like
things:
class Number:
def __init__ (self, n):
self.n =