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, mark.dickinson, rhettinger
Date 2011-09-12.12:21:38
SpamBayes Score 0.0014720298
Marked as misclassified No
Message-id <1315830099.6.0.740710568857.issue12961@psf.upfronthosting.co.za>
In-reply-to
Content
> "unlabelled balls in labelled boxes with capacity limits"

Out of curiosity, what was the application that you needed this for?

This one feels a bit too specialized to me to be worth adding to the itertools library;  I see itertools more as providing a collection of general-purpose tools that the user can combine for specific situations, and it's easy to do the above with itertools.combinations plus some filtering of the results to satisfy the capacity constraints.  Admittedly, that's less-efficient than a custom-built recursive solution.
History
Date User Action Args
2011-09-12 12:21:39mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, Phillip.M.Feldman
2011-09-12 12:21:39mark.dickinsonsetmessageid: <1315830099.6.0.740710568857.issue12961@psf.upfronthosting.co.za>
2011-09-12 12:21:39mark.dickinsonlinkissue12961 messages
2011-09-12 12:21:38mark.dickinsoncreate