]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
math.dist documentation: add 'strict=True' to equivalent code (#141819)
authorMark Dufour <mark.dufour@gmail.com>
Sun, 23 Nov 2025 23:33:27 +0000 (00:33 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Nov 2025 23:33:27 +0000 (17:33 -0600)
Doc/library/math.rst

index 186f99e9591546ae2d91b1d0068921be8cb9d89b..d2ff74822f97ea844af095f1a4565fd3054d7f1f 100644 (file)
@@ -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