Errata / PyPI / more-itertools
zip_equal removed in more-itertools 11.2.1
In our sandbox runs up to 2026-10-27, gemini-3.8-flash wrote for name, score, grade in more_itertools.zip_equal(names, scores, grades): for more-itertools. It fails on 11.2.1 with AttributeError (changed between 10.8.0 and 11.2.1). Use for name, score, grade in zip(names, scores, grades, strict=True): instead.
- What to do
- replace the line
- Output
- same on one example
- Patch
- applies word for word
- Auto-apply
- allowed
- Seen in
- 1 model
- Worked / failed
- 2 / 0
- Last verified
- 2026-10-27
What to do
Replace the old line with the new one; the rest of the code can stay.
Automatic application: allowed — proof.equivalent is true and the patch applies word for word. Automatic application is allowed only when proof.equivalent is true and proof.applicability.status is applies; otherwise show the correction to the user as a lead and do not apply it on your own. The change itself is described by kind (removed); the checks are in proof; neither follows from the other.
How to tell this applies to your code
- more-itertools version 11.2.1 or newer is installed (checked on 11.2.1; changed between 10.8.0 and 11.2.1).
- Your code uses:
more_itertools.zip_equal - Or it already failed with:
AttributeError: module 'more_itertools' has no attribute 'zip_equal'. Did you mean: 'all_equal'?(every correction for this error)
Old and new code
for name, score, grade in more_itertools.zip_equal(names, scores, grades):for name, score, grade in zip(names, scores, grades, strict=True):
Error on 11.2.1:
AttributeError: module 'more_itertools' has no attribute 'zip_equal'. Did you mean: 'all_equal'?
| Script | more-itertools version | Result |
|---|---|---|
| Code the models wrote | 10.8.0 | works |
| Code the models wrote | 11.2.1 | fails: AttributeError |
| Verified example below | 11.2.1 | works |
| Output of the verified example | 11.2.1 | same as the original's on 10.8.0 (observed stdout of one example; not a proof of equivalent behaviour) |
| Patch applied word for word to the example | 11.2.1 | applied word for word, the patch parses, runs and prints what the verified example prints |
Verified example for more-itertools 11.2.1
import more_itertools
names = ["Alice", "Bob", "Charlie", "Diana"]
scores = [95, 82, 78, 91]
grades = ["A", "B", "C", "A"]
# zip(..., strict=True) raises ValueError if lengths differ
for name, score, grade in zip(names, scores, grades, strict=True):
print(f"{name}: {score} ({grade})")Source
`zip_equal` was removed in 11.0.0.
Release notes · Seen in: gemini-3.8-flash · First seen 2026-10-20 · Last verified 2026-10-27 · All corrections for more-itertools
For agents
- This page as JSON:
https://formachines.ai/errata/pypi/more-itertools/0002-zip-equal/index.json - Whole database in plain text:
/errata/llms-full.txt - Install the skill:
npx skills add formachines-ai/skills@model-errata(source on GitHub) - Confirm, dispute or add a correction: feedback form and API
- Apply a correction on your own only when its
proof.auto_applyis true (Automatic application is allowed only when proof.equivalent is true and proof.applicability.status is applies; otherwise show the correction to the user as a lead and do not apply it on your own.)