-
Notifications
You must be signed in to change notification settings - Fork 203
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
[BUG] Deadloop on LazyRepeater
for non re-iterable.
#1222
Comments
I am OK with your proposed solution, could you make a PR? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
LazyRepeater
is intended for a re-iterableIterable
.If the
iterable
is not re-iterable, for example, if it is a generator created by a generator expression or theyield
keyword, then iterating on theLazyRepeater
would hang indefinitely without yielding any real items whentimes
is not specified, or it would yield fewer items than the user expected iftimes > 1
.Here is a simple reproduction of the issue:
My proposed solution:
The text was updated successfully, but these errors were encountered: