converting sqlite return values

bolly news at lolmc.com
Mon Feb 20 14:59:43 EST 2006


Hi,
I've been putting Python data into a sqlite3 database as tuples but
when I retrieve them they come back as unicode data e.g
'u(1,2,3,4)'.How can I change it back to a tuple so I can use it as a
Python native datatype?
I have looked in the docs and seen there is a decode/encode method but
how do I do this?
Hope you can help.




More information about the Python-list mailing list