formachines / errata

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

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'?
Sandbox proof
Scriptmore-itertools versionResult
Code the models wrote10.8.0works
Code the models wrote11.2.1fails: AttributeError
Verified example below11.2.1works
Output of the verified example11.2.1same 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 example11.2.1applied 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