some sort of permutations...

Fredrik Lundh fredrik at pythonware.com
Tue Apr 12 02:37:47 EDT 2005


"Bernard A." wrote:

> i'm looking for a way to have all possible length fixed n-uples from a
> list, i think generators can help, but was not able to do it myself,
> maybe some one could point me out to an idea to do it ?

did you try googling for "python permutations" ?

here's the first hit:

    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465

</F> 






More information about the Python-list mailing list