Nothing Special   »   [go: up one dir, main page]

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

Add a strict option to itertools.batched() #113202

Closed
rhettinger opened this issue Dec 16, 2023 · 0 comments
Closed

Add a strict option to itertools.batched() #113202

rhettinger opened this issue Dec 16, 2023 · 0 comments
Labels
type-feature A feature request or enhancement

Comments

@rhettinger
Copy link
Contributor
rhettinger commented Dec 16, 2023

This is modeled on the strict option for zip().

One use case is improving the reshape() recipe. In numpy, a reshape will raise an exception if the new dimensions do not exactly fit the data.

Linked PRs

@rhettinger rhettinger added the type-feature A feature request or enhancement label Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant