summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorLukas Geiger <lukas.geiger94@gmail.com>2024-11-05 07:53:32 (GMT)
committerGitHub <noreply@github.com>2024-11-05 07:53:32 (GMT)
commit3d4fda2165e7c97116e69d6efef187873b57d01f (patch)
tree1945ad624d35c480754e26e571408d3e672f6f16 /Doc
parent4a0d574273819b2b5006decb661da05b3baa8a4b (diff)
downloadcpython-3d4fda2165e7c97116e69d6efef187873b57d01f.zip
cpython-3d4fda2165e7c97116e69d6efef187873b57d01f.tar.gz
cpython-3d4fda2165e7c97116e69d6efef187873b57d01f.tar.bz2
gh-119793: Prefer `map(..., strict=True)` over starmap/zip in examples (#126407)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/math.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 2ecee89..5ce2ad2 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -406,7 +406,7 @@ Number-theoretic and representation functions
Roughly equivalent to::
- sum(itertools.starmap(operator.mul, zip(p, q, strict=True)))
+ sum(map(operator.mul, p, q, strict=True))
For float and mixed int/float inputs, the intermediate products
and sums are computed with extended precision.