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 konryd
Recipients konryd, rhettinger
Date 2009-01-25.02:05:01
SpamBayes Score 0.000720526
Marked as misclassified No
Message-id <1232849104.35.0.603860748572.issue5048@psf.upfronthosting.co.za>
In-reply-to
Content
The function itertools.combinations might benefit from making
the 'r' (length of the combinations) argument optionally a sequence.

With that change one could call combinations(sequence, [2, 3]) in
order to get all combinations of length 2 and 3.
In particular, one could call combinations(sequence,
range(len(sequence)) in order to get *all* combinations of given
sequence.

The change would be backwards compatible as it would check for
sequential arguments.
History
Date User Action Args
2009-01-25 02:05:05konrydsetrecipients: + konryd, rhettinger
2009-01-25 02:05:04konrydsetmessageid: <1232849104.35.0.603860748572.issue5048@psf.upfronthosting.co.za>
2009-01-25 02:05:02konrydlinkissue5048 messages
2009-01-25 02:05:01konrydcreate