A better self

Fredrik Lundh fredrik at pythonware.com
Sun Jul 21 09:01:38 EDT 2002


Dave wrote:

> 5) Use the x,y,z = self.x, self.y, self.z idiom

unfortunately, that actually creates a 3-item tuple,
only to tear it apart again.  this is better:

    x = self.x; y = self.y; z = self.z

</F>





More information about the Python-list mailing list