[SciPy-User] all unique permutations

Alan G Isaac alan.isaac at gmail.com
Thu Apr 28 21:25:03 EDT 2011


On 4/28/2011 9:12 PM, josef.pktd at gmail.com wrote:
> I didn't find any iterator that would give unique values

It's true that itertools.permutations is  based on index
permutations, but when the number of permuations is not
huge, it is pretty cheap to form a set or a Counter.

fwiw,
Alan




More information about the SciPy-User mailing list