Passing tuples of tuples to sqlite

lolmc lolmcbride at googlemail.com
Mon Sep 28 08:52:58 EDT 2009


On 28 Sep, 11:35, xera121 <lolmcbr... at googlemail.com> wrote:
> Hi
> I have tuples in the format shown below:
>
> (u('2','3','4'),u('5','6','7')........u('20','21','22'))
>
> but they are not being accepted into sqlite - due I think to the
> excessive quote marks which are confusing the issue when converting to
> a string to send it to sqlite.
> Can someone advise me on how I should format the strings so the whole
> tuple of tuples will be accepted in the sqlite insert query?
>
> Thanks
>
> Lol McBride

After receiving an email I realised that the way I have presented the
tuple unicode formatting is incorrect. I will post proper code when I
get access to my machine later to day.

Lol Mc



More information about the Python-list mailing list