I borrowed that line from numpy.linalng.norm.  Do you know what are the differences?