Cache a large list to disk

Karl Chen quarl at nospam.quarl.org
Mon May 17 16:45:30 EDT 2004


Use the pickle or shelve modules.

http://www.python.org/doc/current/lib/module-pickle.html

http://www.python.org/doc/current/lib/module-shelve.html

>>>>> "Chris" == Chris  <iamlevis3 at hotmail.com> writes:
    Chris> straightforward manner.  But being new to Python, I
    Chris> don't know how I can (hopefully easily) write this data
    Chris> to a file, and then read it out into memory on
    Chris> subsequent launches.

-- 
Karl 2004-05-17 13:44





More information about the Python-list mailing list