summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2020-05-15 21:26:00 (GMT)
committerGitHub <noreply@github.com>2020-05-15 21:26:00 (GMT)
commit6a5d3ff67644af42b1a781be2eacb2e82913441c (patch)
treee1448f8728f09e2b960ed6f3a3a64594d60fc286 /Python/pythonrun.c
parent938717fd04c53c717895a756d5910e8c8813706c (diff)
downloadcpython-6a5d3ff67644af42b1a781be2eacb2e82913441c.zip
cpython-6a5d3ff67644af42b1a781be2eacb2e82913441c.tar.gz
cpython-6a5d3ff67644af42b1a781be2eacb2e82913441c.tar.bz2
bpo-40636: Clarify the zip built-in docstring. (GH-20118)
Clarify the zip built-in docstring. This puts much simpler text up front along with an example. As it was, the zip built-in docstring was technically correct. But too technical for the reader who shouldn't _need_ to know about `__next__` and `StopIteration` as most people do not need to understand the internal implementation details of the iterator protocol in their daily life. This is a documentation only change, intended to be backported to 3.8; it is only tangentially related to PEP-618 which might offer new behavior options in the future. Wording based a bit more on enumerate per Brandt's suggestion. This gets rid of the legacy wording paragraph which seems too tied to implementation details of the iterator protocol which isn't relevant here. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions