sorting question

Steve Holden sholden at
Wed Feb 7 19:36:15 EST 2001

"dsavitsk" <dsavitsk at> wrote in message
news:tmlg6.61202$Ch.11526305 at
> i would like to iterate through all possible combinations of the
> in a string, and i am not thinking very clearly about how to approach
> that is, if the initial string is 'bar', i want to print
> ['bar', 'bra', 'abr', 'arb', 'rba', 'rab']
> any hints?
> thanks,
> ds
Tim Peters was working on something a while ago, see[ST_rn=ps]/getdoc.xp?AN=558836665

but I'm not sure where it eventually went to live

Tools, training and technology to help you meet your information needs

More information about the Python-list mailing list