sorting question

dsavitsk dsavitsk at
Wed Feb 7 19:02:29 EST 2001

i would like to iterate through all possible combinations of the characters
in a string, and i am not thinking very clearly about how to approach this.
that is, if the initial string is 'bar', i want to print
['bar', 'bra', 'abr', 'arb', 'rba', 'rab']
any hints?


More information about the Python-list mailing list