From 85b54548e1c081feab2d31946b685d81ec262bb7 Mon Sep 17 00:00:00 2001 From: Mark Dufour Date: Fri, 21 Nov 2025 11:18:03 +0100 Subject: [PATCH] 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. --- Doc/library/math.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 186f99e9591546..d2ff74822f97ea 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -506,7 +506,7 @@ Summation and product functions Roughly equivalent to:: - sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q))) + sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q, strict=True))) .. versionadded:: 3.8