[Tutor] string pickling and sqlite blob'ing

Kent Johnson kent37 at tds.net
Wed Jun 24 20:40:37 CEST 2009


On Wed, Jun 24, 2009 at 1:17 PM, Dinesh B
Vadhia<dineshbvadhia at hotmail.com> wrote:
> I want to pickle (very long) strings and save them in a sqlite db.  The plan
> is to use pickle dumps() to turn a string into a pickle object and store it
> in sqlite.  After reading the string back from the sqlite db, use pickle
> loads() to turn back into original string.

There is no such thing as a "pickle object", the result of
pickle.dumps() is a string.

Kent


More information about the Tutor mailing list