[Python-Dev] Proposal for a new itertools function: iwindow (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Sat May 27 18:48:08 CEST 2006
- Previous message: [Python-Dev] Proposal for a new itertools function: iwindow
- Next message: [Python-Dev] Proposal for a new itertools function: iwindow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Aahz <aahz at pythoncraft.com> wrote:
Some open question remain: - should iwindow return lists or tuples? - what happens if the length of the iterable is smaller than the window size, and no padding is specified? Is this an error? Should the generator return no value at all or one window that is too small?
An itertools windowing function was previously discussed and rejected.
Raymond
- Previous message: [Python-Dev] Proposal for a new itertools function: iwindow
- Next message: [Python-Dev] Proposal for a new itertools function: iwindow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]