Re: multinomial combinations

2011-09-24 Thread Arnaud Delobelle
function that produces multinomial combinations. > (Python's itertools module does ordinary combinations, but not multinomial > combinations). The code essentially works, except that the the last > combination in each tuple is not enclosed in a nested tuple: > > In [2]: x= multino

Re: multinomial combinations

2011-09-24 Thread Chris Rebert
On Sat, Sep 24, 2011 at 12:06 AM, Dr. Phillip M. Feldman wrote: > > I wrote a small generator function that produces multinomial combinations. > (Python's itertools module does ordinary combinations, but not multinomial > combinations).  The code essentially works, except

multinomial combinations

2011-09-24 Thread Dr. Phillip M. Feldman
I wrote a small generator function that produces multinomial combinations. (Python's itertools module does ordinary combinations, but not multinomial combinations). The code essentially works, except that the the last combination in each tuple is not enclosed in a nested tuple: In [