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, Phillip.M.Feldman@gmail.com, cvrebert, mark.dickinson, rhettinger, terry.reedy
Date 2011-09-19.13:14:45
SpamBayes Score 0.016077684
Marked as misclassified No
Message-id <1316438087.03.0.0652753464233.issue12961@psf.upfronthosting.co.za>
In-reply-to
Content
> 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).
History
Date User Action Args
2011-09-19 13:14:47mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, cvrebert, Phillip.M.Feldman@gmail.com, Phillip.M.Feldman
2011-09-19 13:14:47mark.dickinsonsetmessageid: <1316438087.03.0.0652753464233.issue12961@psf.upfronthosting.co.za>
2011-09-19 13:14:46mark.dickinsonlinkissue12961 messages
2011-09-19 13:14:45mark.dickinsoncreate