Skip to content
Advertisement

Tag: pickle

Python SQL: storing objects or iterables

Assume I want to store via sqlite3 a simple list of strings: or a python object with properties and methods. What I tried so far is to serialize (pickle) my_list, and the returned byte representation is b’x80x03]qx00(Xx01x00x00x00aqx01Xx01x00x00x00bqx02Xx01x00x00x00cqx03e.’. However, cannot be stored within a BLOB variable. Should I use a string variable instead, or should I find a way to

Advertisement