Simon Forman wrote: > > "Item.__add__ = Add" is a very strange thing to do, I'm not surprised > it didn't work.
Yes it is strange.
I also tried this even stranger thing:
class Item(object):
class __add__(object):
def __init__(self, a, b=None):
print self, a, b
self.a = a
self.b = b
:)
Simon.
>
> HTH,
> ~Simon
--
http://mail.python.org/mailman/listinfo/python-list
