Re: multinomial combinations

2011-09-24 Thread Arnaud Delobelle
(sorry about the top posting) Change yield c to yield (c,) HTH Arnaud PS: you could also change the if ... To If not ns: Yield ((),) Else: ... On Sep 24, 2011 8:06 AM, "Dr. Phillip M. Feldman" < phillip.m.feld...@gmail.com> wrote: > > I wrote a small generator function that produces mu

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 that the the last > combi