Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop.nextitem is now a lazy operation #677

Merged
merged 4 commits into from
Jan 18, 2025
Merged

loop.nextitem is now a lazy operation #677

merged 4 commits into from
Jan 18, 2025

Conversation

mitsuhiko
Copy link
Owner

Previously we always pulled the next item which meant that the iteration ran one in the past. It also caused lost items when combined with {% break %}.

Fixes #676

@mitsuhiko mitsuhiko merged commit 383470b into main Jan 18, 2025
33 checks passed
@mitsuhiko mitsuhiko deleted the fix/iter-peeking branch January 18, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling {% break %} on an iterator results in a lost value
1 participant