On May 1, 3:45 pm, Tobiah <[EMAIL PROTECTED]> wrote:
> I wanted to do:
>
>         query = "query text" % tuple(rec[1:-1].append(extra))
>
> but the append() method returns none, so I did this:
>
>         fields = rec[1:-1]
>         fields.append(extra)
>         query = "query text" % tuple(fields)
>
> --
> Posted via a free Usenet account fromhttp://www.teranews.com

query = "query text" % tuple(rec[1:-1] + [extra])

should work.

-- Paul

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to