Message80492
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. |
|
Date |
User |
Action |
Args |
2009-01-25 02:05:05 | konryd | set | recipients:
+ konryd, rhettinger |
2009-01-25 02:05:04 | konryd | set | messageid: <1232849104.35.0.603860748572.issue5048@psf.upfronthosting.co.za> |
2009-01-25 02:05:02 | konryd | link | issue5048 messages |
2009-01-25 02:05:01 | konryd | create | |
|