Where's the List?

Emile van Sebille emile at fenx.com
Sat Jun 5 16:31:08 EDT 2010


On 6/5/2010 1:17 PM Victor Subervi said...
>          cursor.execute(sql, tuple([pkg, prodid, tmpTable, quantity] +
> option_values))
>
> It throws this error:
>
> *TypeError*: can only concatenate list (not "tuple") to list
>        args = ('can only concatenate list (not "tuple") to list',)
>
> Where's the list? They're both tuples in that last line of code.

No they're not.  That's what the error is saying.





More information about the Python-list mailing list