What is the best way to merge two lists?

Pierre Rouleau pieroul at attglobal.net
Sun Nov 17 14:52:24 EST 2002


Wojtek Walczak wrote:

> print mergelist(a,b,c,d,e)
> ---
> 
> ...and it returns that: 
>       ['a', 1, 2, 3, 4, 5, 6, 7, 8, <function nic at 0x814880c>, 'b']
> 
> HTH in any way... ;>
> 

It works but it flattens the members that are lists or sequence.
In that sense it modifies the members, which i don't want.


-- 
Pierre





More information about the Python-list mailing list