iterating over list with one mising value

Tim Chase python.list at tim.thechases.com
Tue Feb 7 16:31:49 EST 2012


> Thanks for your responses and help. thought I should provide
> more information for clarity.

It sounds like you want the "grouper" function as defined here:

http://docs.python.org/library/itertools.html#recipes

which does what you describe.

-tkc





More information about the Python-list mailing list