PEP 618
E907044
PEP 618 is a Python Enhancement Proposal that introduced the `strict` parameter to the built-in `zip` function, enabling stricter handling of iterables with mismatched lengths.
All labels observed (1)
| Label | Occurrences |
|---|---|
| PEP 618 canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T10763898 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: PEP 618 Context triple: [Python 3.10, implementsPEP, PEP 618]
-
A.
PEP 612
PEP 612 is a Python Enhancement Proposal that introduces support for parameter specification variables to improve typing of higher-order functions and decorators in Python’s type system.
-
B.
PEP 613
PEP 613 is a Python Enhancement Proposal that introduces the `TypeAlias` annotation to clearly declare and distinguish type aliases in Python’s type hinting system.
-
C.
PEP 614
PEP 614 is a Python Enhancement Proposal that relaxes the grammar restrictions on decorator syntax, allowing more flexible and expressive decorator expressions in Python.
-
D.
PEP 622
PEP 622 is a Python Enhancement Proposal that introduced the design for structural pattern matching syntax later adopted in Python 3.10.
-
E.
PEP 695
PEP 695 is a Python Enhancement Proposal that introduces a new, more concise syntax for type parameter declarations to improve the language’s support for generics and static typing.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: PEP 618 Target entity description: PEP 618 is a Python Enhancement Proposal that introduced the `strict` parameter to the built-in `zip` function, enabling stricter handling of iterables with mismatched lengths.
-
A.
PEP 612
PEP 612 is a Python Enhancement Proposal that introduces support for parameter specification variables to improve typing of higher-order functions and decorators in Python’s type system.
-
B.
PEP 613
PEP 613 is a Python Enhancement Proposal that introduces the `TypeAlias` annotation to clearly declare and distinguish type aliases in Python’s type hinting system.
-
C.
PEP 614
PEP 614 is a Python Enhancement Proposal that relaxes the grammar restrictions on decorator syntax, allowing more flexible and expressive decorator expressions in Python.
-
D.
PEP 622
PEP 622 is a Python Enhancement Proposal that introduced the design for structural pattern matching syntax later adopted in Python 3.10.
-
E.
PEP 695
PEP 695 is a Python Enhancement Proposal that introduces a new, more concise syntax for type parameter declarations to improve the language’s support for generics and static typing.
- F. None of above. chosen
Statements (39)
| Predicate | Object |
|---|---|
| instanceOf | Python Enhancement Proposal ⓘ |
| addsKeywordArgumentTo | zip(strict=...) ⓘ |
| affectsVersion | Python 3.10 NERFINISHED ⓘ |
| audience | Python developers ⓘ |
| backwardsCompatibility | non-strict zip calls behave as before ⓘ |
| category | Core Python NERFINISHED ⓘ |
| changesRuntimeBehaviorOf | zip when strict=True ⓘ |
| createdFor | CPython NERFINISHED ⓘ |
| defaultValueOf | strict=False ⓘ |
| definesAPI | zip(iter1, iter2, *iterables, strict=False) ⓘ |
| definesBehavior |
error on mismatched iterable lengths when strict=True
ⓘ
length-checking for zip iterables ⓘ |
| designDecision | raise error instead of silent truncation in strict mode ⓘ |
| documentationLocation | Python PEPs website NERFINISHED ⓘ |
| ensures | all iterables have the same length when strict=True ⓘ |
| errorType | ValueError on length mismatch in strict mode ⓘ |
| governs | behavior of built-in zip in strict mode ⓘ |
| hasKeyword |
iterables
ⓘ
length checking ⓘ strict ⓘ zip ⓘ |
| hasNumber | 618 ⓘ |
| hasTitle | Add Optional Length-Checking To zip ⓘ |
| impact | safer iteration over multiple sequences ⓘ |
| introducesParameter | strict ⓘ |
| isAccepted | True ⓘ |
| isPartOf | PEP index NERFINISHED ⓘ |
| language | English ⓘ |
| modifiesFunction | zip ⓘ |
| motivation |
detect bugs caused by silently truncated zip results
ⓘ
provide optional strict length checking for zip ⓘ |
| proposesChangeTo | Python language NERFINISHED ⓘ |
| rationale |
default zip behavior remains unchanged
ⓘ
strict mode is opt-in via keyword argument ⓘ |
| repository | https://peps.python.org/pep-0618/ ⓘ |
| scope | built-in functions ⓘ |
| status | Final ⓘ |
| targetImplementation | CPython interpreter NERFINISHED ⓘ |
| type | Standards Track ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: PEP 618 Description of subject: PEP 618 is a Python Enhancement Proposal that introduced the `strict` parameter to the built-in `zip` function, enabling stricter handling of iterables with mismatched lengths.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.