[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] ideas for saving points in games



Greg Ewing wrote:

Pickling can be very convenient, but it ties your file
format very closely to internal details of your program.
Restructuring your program in any way is likely to
render your existing pickled files useless.

I used a dictionary as a container for saved game values and pickled the dictionary. Maybe not the best way but it worked like a charm.

Aaron