Re: something for itertools

2006-09-23 Thread Bruno Desthuilliers
George Sakkis a écrit : > Daniel Nogradi wrote: > >>In a recent thread, >>http://mail.python.org/pipermail/python-list/2006-September/361512.html, >>a couple of very useful and enlightening itertools examples were given >>and was wondering if my problem also can be solved in an elegant way >>by it

Re: something for itertools

2006-09-16 Thread Daniel Nogradi
> > In a recent thread, > > http://mail.python.org/pipermail/python-list/2006-September/361512.html, > > a couple of very useful and enlightening itertools examples were given > > and was wondering if my problem also can be solved in an elegant way > > by itertools. > > > > I have a bunch of tuples

Re: something for itertools

2006-09-15 Thread Tim Williams
On 15/09/06, Daniel Nogradi <[EMAIL PROTECTED]> wrote: > > or maybe a one liner :) > > > > >>> (a + 5*(None,))[:5] > > (1, 2, 3, None, None) > > > > Well, something like this is what I actually do. But for this first I > have to loop over all tuples and pick out the maximal length, so over > all

Re: something for itertools

2006-09-15 Thread George Sakkis
Daniel Nogradi wrote: > In a recent thread, > http://mail.python.org/pipermail/python-list/2006-September/361512.html, > a couple of very useful and enlightening itertools examples were given > and was wondering if my problem also can be solved in an elegant way > by itertools. > > I have a bunch o

Re: something for itertools

2006-09-15 Thread Daniel Nogradi
> > In a recent thread, > > http://mail.python.org/pipermail/python-list/2006-September/361512.html, > > a couple of very useful and enlightening itertools examples were given > > and was wondering if my problem also can be solved in an elegant way > > by itertools. > > > > I have a bunch of tuples

Re: something for itertools

2006-09-15 Thread Tim Williams
On 15/09/06, Daniel Nogradi <[EMAIL PROTECTED]> wrote: > In a recent thread, > http://mail.python.org/pipermail/python-list/2006-September/361512.html, > a couple of very useful and enlightening itertools examples were given > and was wondering if my problem also can be solved in an elegant way > b