Is it possible to ‘pack’ a python object (say, a list or a dict) to a variable rather than to a file?
Ideally, I’d like to ‘pack’ a couple of different dictionaries, lists etc, and only then, ‘concatenate’ all the ‘packed’ info and save it in an external file (say, in a binary format).
Is it doable?
See the pickle module.
http://docs.python.org/library/pickle.html