Generating list of possible configurations

Mensanator mensanator at aol.com
Thu Jul 3 09:54:58 EDT 2008


On Jul 3, 2:13�am, Bruno Desthuilliers <bruno.
42.desthuilli... at websiteburo.invalid> 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
>
> > 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
third party extensions such as gmpy have caught up.

Until then, such solutions are worthless, i.e., of
no value.



More information about the Python-list mailing list