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.
gh-113202: Add a strict option to itertools.batched() (gh-113203)
pythongh-113202: Add a strict option to itertools.batched() (pythongh…
pythongh-113202: Add whatsnew entry for the batched() strict option.
gh-113202: Add whatsnew entry for the batched() strict option. (gh-11…
pythongh-113202: Add whatsnew entry for the batched() strict option. (p…
Activity
gh-113202: Add a strict option to itertools.batched() (gh-113203)
pythongh-113202: Add a strict option to itertools.batched() (pythongh…
pythongh-113202: Add whatsnew entry for the batched() strict option.
gh-113202: Add whatsnew entry for the batched() strict option. (gh-11…
pythongh-113202: Add whatsnew entry for the batched() strict option. (p…
pythongh-113202: Add whatsnew entry for the batched() strict option. (p…
pythongh-113202: Add a strict option to itertools.batched() (pythongh…
pythongh-113202: Add whatsnew entry for the batched() strict option. (p…