This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Generalize Euclidean distance function in the math module to Minkowski distance
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, nubol23, rhettinger, stutzbach
Priority: normal Keywords:

Created on 2019-06-30 06:42 by nubol23, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg346919 - (view) Author: Rafael Villca Poggian (nubol23) Date: 2019-06-30 06:42
Given that Euclidean distance function was added into the Math module, I think it would be better to have the generalized version of the function as an implementation of the Minkowski distance with p=2 by default, thus maintaining the use as Euclidean distance, providing the extra uses of Minkowski distance.
msg346941 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-06-30 22:07
I would like to decline this for now.  We're being reserved about what goes into the math module, deferring many needs to third-party packages.
msg347065 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2019-07-01 19:05
Agreed. We've moved away from the "Python's math module is just a set of wrappers around the C math library" stage, but it's still important to keep the math module a coherent set of basic building blocks.
History
Date User Action Args
2022-04-11 14:59:17adminsetgithub: 81631
2019-07-01 19:05:01mark.dickinsonsetmessages: + msg347065
2019-06-30 22:07:44rhettingersetstatus: open -> closed
resolution: rejected
messages: + msg346941

stage: resolved
2019-06-30 06:45:50xtreaksetnosy: + rhettinger, mark.dickinson, stutzbach
2019-06-30 06:45:00nubol23settype: enhancement
2019-06-30 06:42:16nubol23create