Saving Lists as BLOB

John Bradbury john_bradbury at
Wed Jun 4 20:01:28 CEST 2003

    Is there any way to save a Python List (or Dictionary) as a binary field
in MySQLdb?

I have tried :
CR.execute("UPDATE STDPAGE SET content_s = %s,fldlist = %s where name =
'DATAENTRY'", (pagout,flds) )
where flds is a python list and I get an sql error.  I dont want to convert
the list to a string which would work.

Apologies if this gets posted twice, but I am having problems with my email

John Bradbury

More information about the Python-list mailing list