Best method for updating pickled data objects?

Skip Montanaro skip at pobox.com
Thu Jul 5 19:07:57 EDT 2001


    Rupert> Deleting and recreating the pickle file, then writing out the
    Rupert> data object from memory each time seems horribly inefficient to
    Rupert> me (especially for large data objects).

You can just open the file for writing.  No need to delete it (well, expect
perhaps for OS's like VMS that automatically create new file versions).

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list