Appending data to a json file

Ben Finney ben+python at benfinney.id.au
Tue Apr 4 13:37:11 EDT 2017


Dave <dboland9 at fastmail.fm> writes:

> I don't care for the idea of replacing the data file for every save.

This is the simplest implementation. It works. Can you say why you don't
care for it?

> My preference would to append to the existing data file - makes more
> sense.

Can you expand on that? You haven't defined how that would satisfy the
requirement, so it isn't clear to me why a more complex method “makes
more sense” than the simple way which works now.

-- 
 \                              “Holy hole in a donut, Batman!” —Robin |
  `\                                                                   |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list