Re: Generating list of possible configurations

2008-07-04 Thread [EMAIL PROTECTED]
Wow, I didn't have time to look back on this thread for a while, surprised of the activity. Anyhow, thanks for the answers, and thanks for pointing out that the itertools-variants are not available in 2.5. Cheers! //emil -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating list of possible configurations

2008-07-03 Thread Mensanator
On Jul 3, 9:09�pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jul 3, 7:51 pm, Mensanator <[EMAIL PROTECTED]> wrote: > > > On Jul 3, 6:24 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > Taking into account 2.6 too (we're not talking about only 3.0 here), > > > probably not much less than tho

Re: Generating list of possible configurations

2008-07-03 Thread Mensanator
On Jul 3, 8:10�pm, casevh <[EMAIL PROTECTED]> wrote: > On Jul 3, 6:54�am, Mensanator <[EMAIL PROTECTED]> wrote: > > > > > Well, it will be great at some point in the future > > when Python 2.6/3.0 have actually been released and > > third party extensions such as gmpy have caught up. > > > Until th

Re: Generating list of possible configurations

2008-07-03 Thread George Sakkis
On Jul 3, 7:51 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On Jul 3, 6:24 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > > > Taking into account 2.6 too (we're not talking about only 3.0 here), > > probably not much less than those who even know what is gmpy, let > > alone dismiss a beta Python re

Re: Generating list of possible configurations

2008-07-03 Thread casevh
On Jul 3, 6:54 am, Mensanator <[EMAIL PROTECTED]> wrote: > > Well, it will be great at some point in the future > when Python 2.6/3.0 have actually been released and > third party extensions such as gmpy have caught up. > > Until then, such solutions are worthless, i.e., of > no value. gmpy is sup

Re: Generating list of possible configurations

2008-07-03 Thread Mensanator
On Jul 3, 6:24 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Jul 3, 5:49 pm, Mensanator <[EMAIL PROTECTED]> wrote: > > > On Jul 3, 2:52 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > > > > Worthless to you, worthwhile to me.   > > > The OP's opinion is the only one that matters. > > I bet the OP

Re: Generating list of possible configurations

2008-07-03 Thread George Sakkis
On Jul 3, 5:49 pm, Mensanator <[EMAIL PROTECTED]> wrote: > On Jul 3, 2:52 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > > > Worthless to you, worthwhile to me.   > > The OP's opinion is the only one that matters. I bet the OP doesn't know (or care) what gmpy is. > What do you suppose > is the per

Re: Generating list of possible configurations

2008-07-03 Thread Mensanator
On Jul 3, 2:52 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > > On Jul 3, 2:13�am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > >> Terry Reedy a �crit : > >>> This has been added to itertools at least for 2.6/3.0 > >> Great ! > > > Well, it will be great at some point in the

Re: Generating list of possible configurations

2008-07-03 Thread Terry Reedy
Mensanator wrote: On Jul 3, 2:13�am, Bruno Desthuilliers wrote: Terry Reedy a �crit : This has been added to itertools at least for 2.6/3.0 Great ! Well, it will be great at some point in the future when Python 2.6/3.0 have actually been released and The betas 'have actually been rele

Re: Generating list of possible configurations

2008-07-03 Thread Mensanator
On Jul 3, 2:13�am, Bruno Desthuilliers wrote: > Terry Reedy a �crit : > > > > > Mensanator wrote: > (snip) > >> Lookup "Cartesian Product". > (snip) > >> for a in [True,False]: > >> � for b in [True,False]: > >> � � for c in [1,2,3,4]: > >> � � � print 'combined settings:',a,'\t',b,'\t',c > > > Th

Re: Generating list of possible configurations

2008-07-03 Thread Jeff
On Jul 2, 5:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello pythonistas. > > I'm a newbie to pretty much both programming and Python. I have a task > that involves writing a test script for every possible combination of > preference settings for a software I'm testing. I figured that

Re: Generating list of possible configurations

2008-07-03 Thread Bruno Desthuilliers
Terry Reedy a écrit : Mensanator wrote: (snip) Lookup "Cartesian Product". (snip) for a in [True,False]: for b in [True,False]: for c in [1,2,3,4]: print 'combined settings:',a,'\t',b,'\t',c This has been added to itertools at least for 2.6/3.0 Great ! -- http://mail.python

Re: Generating list of possible configurations

2008-07-02 Thread Terry Reedy
Mensanator wrote: On Jul 2, 4:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: After this I tried figuring out a function that would generate the different possible configurations, but I couldn't quite wrap my head around it... Lookup "Cartesian Product". Any pointers as to how one

Re: Generating list of possible configurations

2008-07-02 Thread Mensanator
On Jul 2, 4:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello pythonistas. > > I'm a newbie to pretty much both programming and Python. I have a task > that involves writing a test script for every possible combination of > preference settings for a software I'm testing. I figured that

Generating list of possible configurations

2008-07-02 Thread [EMAIL PROTECTED]
Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible combination of preference settings for a software I'm testing. I figured that this was something that a script could probably do pretty easily, given all