René's URL Explorer Experiment


Title: PEP 618 – Add Optional Length-Checking To zip | peps.python.org

Open Graph Title: PEP 618 – Add Optional Length-Checking To zip | peps.python.org

Description: This PEP proposes adding an optional strict boolean keyword parameter to the built-in zip. When enabled, a ValueError is raised if one of the arguments is exhausted before the others.

Open Graph Description: This PEP proposes adding an optional strict boolean keyword parameter to the built-in zip. When enabled, a ValueError is raised if one of the arguments is exhausted before the others.

Opengraph URL: https://peps.python.org/pep-0618/

direct link

Domain: peps.python.org

color-schemelight dark
og:typewebsite
og:site_namePython Enhancement Proposals (PEPs)
og:imagehttps://peps.python.org/_static/og-image.png
og:image:altPython PEPs
og:image:width200
og:image:height200
theme-color#3776ab

Links:

Pythonhttps://www.python.org/
PEP Indexhttps://peps.python.org/
Python-Dev messagehttps://mail.python.org/archives/list/python-dev@python.org/message/NLWB7FVJGMBBMCF4P3ZKUIE53JPDOWJ3
Abstracthttps://peps.python.org/618#abstract
Motivationhttps://peps.python.org/618#motivation
Rationalehttps://peps.python.org/618#rationale
Specificationhttps://peps.python.org/618#specification
Backward Compatibilityhttps://peps.python.org/618#backward-compatibility
Reference Implementationhttps://peps.python.org/618#reference-implementation
Rejected Ideashttps://peps.python.org/618#rejected-ideas
Add itertools.zip_stricthttps://peps.python.org/618#add-itertools-zip-strict
Precedenthttps://peps.python.org/618#precedent
Usabilityhttps://peps.python.org/618#usability
Maintenance Costhttps://peps.python.org/618#maintenance-cost
Add Several “Modes” To Switch Betweenhttps://peps.python.org/618#add-several-modes-to-switch-between
Add A Method Or Alternate Constructor To The zip Typehttps://peps.python.org/618#add-a-method-or-alternate-constructor-to-the-zip-type
Change The Default Behavior Of ziphttps://peps.python.org/618#change-the-default-behavior-of-zip
Accept A Callback To Handle Remaining Itemshttps://peps.python.org/618#accept-a-callback-to-handle-remaining-items
Raise An AssertionErrorhttps://peps.python.org/618#raise-an-assertionerror
Add A Similar Feature to maphttps://peps.python.org/618#add-a-similar-feature-to-map
Do Nothinghttps://peps.python.org/618#do-nothing
Referenceshttps://peps.python.org/618#references
Exampleshttps://peps.python.org/618#examples
Copyrighthttps://peps.python.org/618#copyright
Abstracthttps://peps.python.org/618#abstract
Motivationhttps://peps.python.org/618#motivation
survey of the standard libraryhttps://peps.python.org/618#examples
silently dropped parts of malformed nodeshttps://bugs.python.org/issue40355
counted dozens of other call siteshttps://peps.python.org/618#examples
Rationalehttps://peps.python.org/618#rationale
originally proposedhttps://mail.python.org/archives/list/python-ideas@python.org/message/6GFUADSQ5JTF7W7OGWF7XF2NH2XUTUQM
Specificationhttps://peps.python.org/618#specification
Backward Compatibilityhttps://peps.python.org/618#backward-compatibility
Reference Implementationhttps://peps.python.org/618#reference-implementation
C implementationhttps://github.com/python/cpython/pull/20921
Rejected Ideashttps://peps.python.org/618#rejected-ideas
Add itertools.zip_stricthttps://peps.python.org/618#add-itertools-zip-strict
Precedenthttps://peps.python.org/618#precedent
Usabilityhttps://peps.python.org/618#usability
Maintenance Costhttps://peps.python.org/618#maintenance-cost
Add Several “Modes” To Switch Betweenhttps://peps.python.org/618#add-several-modes-to-switch-between
Add A Method Or Alternate Constructor To The zip Typehttps://peps.python.org/618#add-a-method-or-alternate-constructor-to-the-zip-type
Change The Default Behavior Of ziphttps://peps.python.org/618#change-the-default-behavior-of-zip
Accept A Callback To Handle Remaining Itemshttps://peps.python.org/618#accept-a-callback-to-handle-remaining-items
Raise An AssertionErrorhttps://peps.python.org/618#raise-an-assertionerror
official documentationhttps://docs.python.org/3.9/library/exceptions.html?highlight=assertionerror#AssertionError
Add A Similar Feature to maphttps://peps.python.org/618#add-a-similar-feature-to-map
Do Nothinghttps://peps.python.org/618#do-nothing
isn’t trivialhttps://stackoverflow.com/questions/32954486/zip-iterators-asserting-for-equal-length-in-python
Referenceshttps://peps.python.org/618#references
Exampleshttps://peps.python.org/618#examples
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3394https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3394
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3418https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3418
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3435https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/_pydecimal.py#L3435
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L94-L95https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L94-L95
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1184https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1184
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1275https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1275
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1363https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1363
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1391https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/ast.py#L1391
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/copy.py#L217https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/copy.py#L217
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/csv.py#L142https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/csv.py#L142
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/dis.py#L462https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/dis.py#L462
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/filecmp.py#L142https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/filecmp.py#L142
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/filecmp.py#L143https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/filecmp.py#L143
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/inspect.py#L1440https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/inspect.py#L1440
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/inspect.py#L2095https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/inspect.py#L2095
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/os.py#L510https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/os.py#L510
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/plistlib.py#L577https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/plistlib.py#L577
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1317https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1317
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1323https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1323
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1339https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/tarfile.py#L1339
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3015https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3015
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3071https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3071
https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3901https://github.com/python/cpython/blob/27c0d9b54abaa4112d5a317b8aa78b39ad60a808/Lib/turtle.py#L3901
Copyrighthttps://peps.python.org/618#copyright
Abstracthttps://peps.python.org/618#abstract
Motivationhttps://peps.python.org/618#motivation
Rationalehttps://peps.python.org/618#rationale
Specificationhttps://peps.python.org/618#specification
Backward Compatibilityhttps://peps.python.org/618#backward-compatibility
Reference Implementationhttps://peps.python.org/618#reference-implementation
Rejected Ideashttps://peps.python.org/618#rejected-ideas
Add itertools.zip_stricthttps://peps.python.org/618#add-itertools-zip-strict
Precedenthttps://peps.python.org/618#precedent
Usabilityhttps://peps.python.org/618#usability
Maintenance Costhttps://peps.python.org/618#maintenance-cost
Add Several “Modes” To Switch Betweenhttps://peps.python.org/618#add-several-modes-to-switch-between
Add A Method Or Alternate Constructor To The zip Typehttps://peps.python.org/618#add-a-method-or-alternate-constructor-to-the-zip-type
Change The Default Behavior Of ziphttps://peps.python.org/618#change-the-default-behavior-of-zip
Accept A Callback To Handle Remaining Itemshttps://peps.python.org/618#accept-a-callback-to-handle-remaining-items
Raise An AssertionErrorhttps://peps.python.org/618#raise-an-assertionerror
Add A Similar Feature to maphttps://peps.python.org/618#add-a-similar-feature-to-map
Do Nothinghttps://peps.python.org/618#do-nothing
Referenceshttps://peps.python.org/618#references
Exampleshttps://peps.python.org/618#examples
Copyrighthttps://peps.python.org/618#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0618.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0618.rsthttps://github.com/python/peps/blob/main/peps/pep-0618.rst
2025-02-01 08:59:27 UTChttps://github.com/python/peps/commits/main/peps/pep-0618.rst

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.