Mark Dickinson <dicki...@gmail.com> added the comment:

> Balls-in-boxes _is_ one of the most basic of the canonical combinatorial 
> problems.

Agreed.  But in its basic form, this is covered by itertools.combinations, 
isn't it?  It may be worth a doc recipe showing how to use 
itertools.combinations for this (especially since the naive 
implementation---e.g., the one I posted on comp.lang.python, doesn't get 
boundary cases right).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to