On Thu, Jun 2, 2011 at 3:26 PM, Algis Kabaila <akabaila at pcug.org.au> wrote: > import math > > length = math.hypot(z, math.hypot(x, y)) > > One line and fast. The dimension is arbitrary, though, so: length = reduce(math.hypot, self._coords, 0) Cheers, Ian