bpo-33089: Add math.dist() for computing the Euclidean distance between two points by rhettinger · Pull Request #8561 · python/cpython (original) (raw)
Hi, thanks for a great language. Not sure if this is the right place to add this comment. Anyways, was adding other norms ever under consideration? For instance, math.dist(p, q, norm='l1')
, where euclidian
or l2
would be default? I get that you may not want to add too many but at least the standard ones would be nifty.