Hello,
I have different sets/dictionaries/lists (whatever you want because I
can convert them easily) and I would like to combine them. I don't want
a consensus and something like it. I'd need to combine all elements of
the first one with the all elements of the second one and third,... the
Alfons Nonell-Canals wrote:
I have different sets/dictionaries/lists (whatever you want because I
can convert them easily) and I would like to combine them. I don't want
a consensus and something like it. I'd need to combine all elements of
the first one with the all elements of the second
Hi,
Did you try the list.update() builtin function ?
Regards
Peter Otten a écrit :
Alfons Nonell-Canals wrote:
I have different sets/dictionaries/lists (whatever you want because I
can convert them easily) and I would like to combine them. I don't want
a consensus and something like it.
Alfons Nonell-Canals wrote:
Hello,
I have different sets/dictionaries/lists (whatever you want because I
can convert them easily) and I would like to combine them. I don't want
a consensus and something like it. I'd need to combine all elements of
the first one with the all elements of the
On Sep 22, 3:08 am, Alfons Nonell-Canals alfons.non...@upf.edu
wrote:
Hello,
I have different sets/dictionaries/lists (whatever you want because I
can convert them easily) and I would like to combine them. I don't want
a consensus and something like it. I'd need to combine all elements of
the
Hello,
finally I've solved it using a combinatorics library which allows to
do this kind of things.
Here, here is an example:
http://automatthias.wordpress.com/2007/04/28/cartesian-product-of-multiple-sets/
Thanks for your suggestions.
Regards,
Alfons.
Carl Banks wrote:
On Sep 22, 3:08
Alfons Nonell-Canals alfons.non...@upf.edu wrote:
finally I've solved it using a combinatorics library which allows to
do this kind of things.
If you're using a version of Python 2.6 you might find that
itertools.combinations does what you want without requiring the
additional code.
--
On Sep 23, 12:44 pm, alex23 wuwe...@gmail.com wrote:
Alfons Nonell-Canals alfons.non...@upf.edu wrote:
finally I've solved it using a combinatorics library which allows to
do this kind of things.
If you're using a version of Python 2.6 you might find that
itertools.combinations does what