On Sun, Jan 3, 2010 at 11:51 PM, Gabriel Genellina
<gagsl-...@yahoo.com.ar> wrote:
> This
> py> [1,2,3] + (4,5)
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> TypeError: can only concatenate list (not "tuple") to list

Given that tuples are sometimes used as a poor man's object (i.e.
collection of data fields), whereas lists are not typically used that
way, I'd say it's probably a good thing an explicit type conversion is
required here.

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to