[Python-checkins] bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)

Miss Islington (bot) webhook-mailer at python.org
Sat Feb 16 14:00:49 EST 2019


https://github.com/python/cpython/commit/3ff5962d2e9af2c35d09d39465397c6fa6e9965c
commit: 3ff5962d2e9af2c35d09d39465397c6fa6e9965c
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-02-16T11:00:42-08:00
summary:

bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)



https://bugs.python.org/issue33089

files:
M Doc/whatsnew/3.8.rst

diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index dbc3787a9562..632c2a87a69a 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -193,9 +193,16 @@ Add option ``--json-lines`` to parse every input line as separate JSON object.
 math
 ----
 
+Added new function :func:`math.dist` for computing Euclidean distance
+between two points.  (Contributed by Raymond Hettinger in :issue:`33089`.)
+
+Expanded the :func:`math.hypot` function to handle multiple dimensions.
+Formerly, it only supported the 2-D case.
+(Contributed by Raymond Hettinger in :issue:`33089`.)
+
 Added new function, :func:`math.prod`, as analogous function to :func:`sum`
 that returns the product of a 'start' value (default: 1) times an iterable of
-numbers. (Contributed by Pablo Galindo in :issue:`issue35606`)
+numbers. (Contributed by Pablo Galindo in :issue:`35606`)
 
 
 os.path



More information about the Python-checkins mailing list