Generating list of possible configurations

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Jul 3 03:13:45 EDT 2008


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 !



More information about the Python-list mailing list