Generating all combinations

member thudfoo thudfoo at opensuse.us
Sun May 31 18:22:49 EDT 2009


On 5/31/09, Scott David Daniels <Scott.Daniels at acm.org> wrote:
> Johannes Bauer wrote:
>
> > Hello group,
> >
> > I'm trying to write a function in Python which does the following: For a
> > number of arguments which are all lists, return a list (or generator)
> > which yields all tuples of combination. E.g:
> >
>
>  Look here:
>
> http://docs.python.org/library/itertools.html#itertools.product
>
>  (new in 2.6, but code works in lower versions).
>

How would one go about installing the python 2.6 itertools code in python 2.5?

>  --Scott David Daniels
>  Scott.Daniels at Acm.Org
>
>
>
>  --
>  http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list