I see patterns like
def __init__(self, x, y, z): ... self.x = x self.y = y self.z = z ...
quite frequently, often with
You could also do:
locs = locals() for arg in inspect.getargspec(self.__init__)[0][1:]: setattr(self, arg, locs[arg])
Of course, you would have to import the inspect module.
inspect