GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a strict option to itertools.batched() · Issue #113202 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Add a strict option to itertools.batched()#113202
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@rhettinger
rhettinger
opened on Dec 16, 2023
Issue body actions

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

  • gh-113202: Add a strict option to itertools.batched() #113203
  • gh-113202: Add whatsnew entry for the batched() strict option. #115889
Reacted by Daniel Blessing

Activity

  1. rhettinger
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 16, 2023
  2. rhettinger
    closed this as completedon Dec 16, 2023
  3. rhettinger
    added a commit that references this issue on Dec 16, 2023

    gh-113202: Add a strict option to itertools.batched() (gh-113203)

    1583c40
  4. aisk
    added a commit that references this issue on Feb 11, 2024

    pythongh-113202: Add a strict option to itertools.batched() (pythongh…

    b4e8ed8
  5. rhettinger
    added 2 commits that reference this issue on Feb 24, 2024

    pythongh-113202: Add whatsnew entry for the batched() strict option.

    a7fcfbe

    gh-113202: Add whatsnew entry for the batched() strict option. (gh-11…

    53c5c17
  6. woodruffw
    added a commit that references this issue on Mar 4, 2024

    pythongh-113202: Add whatsnew entry for the batched() strict option. (p…

    c7d776b
  7. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-113202: Add whatsnew entry for the batched() strict option. (p…

    35fdf11
  8. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-113202: Add a strict option to itertools.batched() (pythongh…

    7786f3f
  9. LukasWoodtli
    added a commit that references this issue on Jan 22, 2025

    pythongh-113202: Add whatsnew entry for the batched() strict option. (p…

    7606695
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 enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.