A better self

Louis M. Pecora pecora at anvil.nrl.navy.mil
Sun Jul 21 09:57:32 EDT 2002


In article <Sgy_8.16728$p56.5449577 at newsb.telia.net>, Fredrik Lundh
<fredrik at pythonware.com> 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

If that's faster, that's what I'd use. Thanks.

-- 
Lou Pecora
  - My views are my own.



More information about the Python-list mailing list