How about this:
[code]
    def __add__(self,x):
        return Cc14(self.r+x.r, self.i+x.i)
[/code]

However... Are you aware that Python has built in support for complex
numbers already?

>>> x = 4+5j
>>> y = 4+5j
>>> x+y
(8+10j)
>>>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to