class Complex : def __init__(self, real, imag) : self.real = real self.imag = imag def fromCartesian(real, imag) : return __init__(self, real, imag) Complex.fromCartesian(1, 2)