Please help with MemoryError

Tim Chase python.list at tim.thechases.com
Thu Feb 11 21:36:57 EST 2010


Jonathan Gardner wrote:
> Don't use Python variables to store data long-term. Instead, setup a
> database or a file and use that. I'd first look at using a file, then
> using SQLite, and then a full-fledged database like PostgreSQL.

Just to add to the mix, I'd put the "anydbm" module on the 
gradient between "using a file" and "using sqlite".  It's a nice 
intermediate step between rolling your own file formats for data 
on disk, and having to write SQL since access is entirely like 
you'd do with a regular Python dictionary.

-tkc





More information about the Python-list mailing list