Skip to content

Commit 85b5454

Browse files
author
Mark Dufour
committed
math.dist documentation: add 'strict=True' to equivalent code
the documentation for math.sumprod also uses it, so this is both more consistent and more precise.
1 parent 20b69aa commit 85b5454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ Summation and product functions
506506

507507
Roughly equivalent to::
508508

509-
sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))
509+
sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q, strict=True)))
510510

511511
.. versionadded:: 3.8
512512

0 commit comments

Comments
 (0)