[Tutor] general basic question
Walter Prins
wprins at gmail.com
Wed Feb 8 15:29:34 CET 2012
Hi Ken,
On 8 February 2012 14:17, ken brockman <krush1954 at yahoo.com> wrote:
> Thank you Walter for your help and speedy reply.
You're welcome.
> Using pickling I have somehow managed to save two separate lists, but the
> dictionary is giving me much more of a struggle.
Well do post back if you don't manage to solve your issues (with full
error messages & stack traces as relevant please.) Re dictionaries --
I actually forgot to mention, there's a specialized type of dictionary
class available in Python, called a "shelf", implented/available via
the "shelve" module, which is basically a dict with pickling built in.
See here:
http://docs.python.org/library/shelve.html
HTH,
Walter
More information about the Tutor
mailing list