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.00147203
Marked as misclassified No
Message-id <>
> "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.
Date User Action Args
2011-09-12 12:21:39mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, Phillip.M.Feldman
2011-09-12 12:21:39mark.dickinsonsetmessageid: <>
2011-09-12 12:21:39mark.dickinsonlinkissue12961 messages
2011-09-12 12:21:38mark.dickinsoncreate