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
itertools.fixlen #49284
Comments
As raised recently on python-ideas [1]_, an itertools method fixing I appended a patch implementing this feature in Python/C, unit tests and .. [1] http://thread.gmane.org/gmane.comp.python.ideas/2472/focus=2479 |
"Return an iterator fixing *iterable*\ 's length to *length* by either Rather than mixing both, it would be more flexible to have a separate |
Am taking this under advisement but am initially disinclined. It is not |
When I started writing this patch this was actually what I intended. But It depends on which use case is more common: either fixing an iterator The thread on python-ideas suggests the latter while the example Python On a related note: what should happen if |
Am still leaning towards rejecting this one based on:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: