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

Re: [pygame] Game not running



Am 11.03.12 18:11, schrieb Avirup Kundu:
I tried the file approach but being a newbie couldn't make anything. I
will try the sqlite. It will be easier i believe . Let's see..

Using sqlite is certainly not easier than using plain files (though it can be more robust, depending on your use case).

If you just want to make a Python object persistent, e.g. write a dictionary mapping player names to highscores to disk and reload it later, take a look at the 'shelve' module from the standard library.

Chris