Hi,

If I do:

>>> a=("1","2")
>>> b=[("3","4"),("5","6")]
>>> list(a)+b
['1', '2', ('3', '4'), ('5', '6')]

I would like rather to obtain:

[('1', '2'), ('3', '4'), ('5', '6')]

Am I compelled to do:

>>> c=[]
>>> c.append(a)
>>> c+b
[('1', '2'), ('3', '4'), ('5', '6')]

Thanks

Julien
-- 
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.9&1+,\'Z
(55l4('])"

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to