How do I avoid the "self.x = x; self.y = y; self.z = z" pattern in __init__?
<p>I see patterns like</p>

<pre><code>def __init__(self, x, y, z):
    ...
    self.x = x
    self.y = y
    self.z = z
    ...
</code></pre>

<p>quite frequently, often with a lot more parameters. Is there a good way to avoid this type of tedious repetitiveness? Should the class inherit from <code>namedtuple</code> instead?</p>