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


Groups > comp.lang.python > #19985

Re: iterating over list with one mising value

Date 2012-02-07 15:31 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: iterating over list with one mising value
References <1328646189.84221.YahooMailClassic@web161206.mail.bf1.yahoo.com>
Newsgroups comp.lang.python
Message-ID <mailman.5516.1328650295.27778.python-list@python.org> (permalink)

Show all headers | View raw


> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web