Re: List Combinations

2008-03-12 Thread Arnaud Delobelle
On Mar 12, 3:38 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: [...] > Start here > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg178356.html > and go through the thread.  There are several ways to solve the problem > and we evaluated the performance and 'pythonicity' of each.   I used a ki

RE: List Combinations

2008-03-12 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Shane Geiger > Sent: Wednesday, March 12, 2008 10:33 AM > To: Michael Wieher > Cc: python-list@python.org > Subject: Re: List Combinations > > > >

Re: List Combinations

2008-03-12 Thread Mel
Gerdus van Zyl wrote: > I have a list that looks like this: > [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']] > > how can I get all the combinations thereof that looks like as follows: > 3,9,5,4,2 > 3,1,5,4,2 > 3,9,5,4,5 > 3,1,5,4,5 > etc. > > Thank You, > Gerdus What they said, or, if you wa

Re: List Combinations

2008-03-12 Thread Mark Dickinson
On Mar 12, 10:18 am, Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > I have a list that looks like this: > [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']] > > how can I get all the combinations thereof that looks like as follows: You could wait for Python 2.6, or download the current alpha: Python

Re: List Combinations

2008-03-12 Thread George Sakkis
On Mar 12, 10:18 am, Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > I have a list that looks like this: > [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']] > > how can I get all the combinations thereof that looks like as follows: > 3,9,5,4,2 > 3,1,5,4,2 > 3,9,5,4,5 > 3,1,5,4,5 > etc. > > Thank You,

Re: List Combinations

2008-03-12 Thread Shane Geiger
Michael Wieher wrote: > > > 2008/3/12, Gerdus van Zyl <[EMAIL PROTECTED] > >: > > I have a list that looks like this: > [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']] > > how can I get all the combinations thereof that looks like as follows: > 3,9,5,4,2

Re: List Combinations

2008-03-12 Thread Michael Wieher
2008/3/12, Gerdus van Zyl <[EMAIL PROTECTED]>: > > I have a list that looks like this: > [['3'], ['9', '1'], ['5'], ['4'], ['2', '5', '8']] > > how can I get all the combinations thereof that looks like as follows: > 3,9,5,4,2 > 3,1,5,4,2 > 3,9,5,4,5 > 3,1,5,4,5 > etc. > > Thank You, > Gerdus > > -