| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Example:
>>> p=[1,2,3] >>> q=[4,5,6] >>> import math >>> math.sumprod(p, q) 32 >>> import itertools, operator >>> sum(itertools.starmap(operator.mul, zip(p, q, strict=True))) 32 >>> sum(map(operator.mul, p, q)) 32
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This is a docs-only change that updates the examples to use map(..., strict=True) instead of starmap(..., zip(..., strict=True)) which should improve readability.
📚 Documentation preview 📚: https://cpython-previews--126407.org.readthedocs.build/