Skip to content

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

Closed

Description

@rhettinger

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

Activity

  1. added a commit that references this issue on Dec 16, 2023
  2. added a commit that references this issue on Feb 11, 2024
  3. added 2 commits that reference this issue on Feb 24, 2024
  4. added a commit that references this issue on Mar 4, 2024
  5. added a commit that references this issue on Apr 17, 2024
  6. added a commit that references this issue on Sep 2, 2024
  7. added a commit that references this issue on Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions