This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Phillip.M.Feldman,, cvrebert, mark.dickinson, rhettinger, terry.reedy
Date 2011-09-19.13:14:45
SpamBayes Score 0.0160777
Marked as misclassified No
Message-id <>
> 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).
Date User Action Args
2011-09-19 13:14:47mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, cvrebert,, Phillip.M.Feldman
2011-09-19 13:14:47mark.dickinsonsetmessageid: <>
2011-09-19 13:14:46mark.dickinsonlinkissue12961 messages
2011-09-19 13:14:45mark.dickinsoncreate