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

Weaken guarantee around advancing underlying iterators in zip #83791

Merged
merged 1 commit into from
Nov 27, 2021

Commits on Aug 11, 2021

  1. Weaken guarantee around advancing underlying iterators in zip

    The current guarantee is too strong as it would prevent adapters
    from exploiting knowledge about the iterator length and using counted
    loops for example because they would stop calling `next()` before
    it ever returned `None`. Additionally several nested zip iterators
    already fail to uphold this.
    
    This doesn't remove any of the specialization code that tries
    (and sometimes fails) to uphold the guarantee for `next()`
    because removing it would also affect `next_back()`
    in more surprising ways.
    the8472 committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    2ff677d View commit details
    Browse the repository at this point in the history