"Mac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a nice Python idiom for constructors which would expedite the > following? > > class Foo: > def __init__(self, a,b,c,d,...): > self.a = a > self.b = b > self.c = c > self.d = d
Do you like this better? self.a, self.b, self.c, self.d = a,b,c,d For my own code, I might use 's' instead of 'self' to save typing... Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list