Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19985 > unrolled thread

Re: iterating over list with one mising value

Started byTim Chase <python.list@tim.thechases.com>
First post2012-02-07 15:31 -0600
Last post2012-02-07 15:31 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: iterating over list with one mising value Tim Chase <python.list@tim.thechases.com> - 2012-02-07 15:31 -0600

#19985 — Re: iterating over list with one mising value

FromTim Chase <python.list@tim.thechases.com>
Date2012-02-07 15:31 -0600
SubjectRe: iterating over list with one mising value
Message-ID<mailman.5516.1328650295.27778.python-list@python.org>
> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web