Help me with this code PLEASE
cs at zip.com.au
Tue Nov 5 23:31:07 CET 2013
On 05Nov2013 20:09, Nikos <nikos.gr33k at gmail.com> wrote:
> O even better an rdbms than allows complex data such as tuples,
> lists, dicts to be saved into the db as they are so i dont have to
> cobvet back and forth each time.
If you're just using the db for storage or adhoc and arbitrary
python objects (and not querying the stored values via SQL - eg
WHERE), then: make a column of type BLOB, convert Python values to
bytes using pickle, store. And of course the reverse.
It is not a great use of an RDB, but it seems to adhere to what you ask.
Cameron Simpson <cs at zip.com.au>
More information about the Python-list