simple indexed file module?

Jack Jansen Jack.Jansen at oratrix.com
Tue Apr 13 06:05:39 EDT 1999


Joe Strout wrote:
> 
> For a CGI script I'm working on, I need to keep a couple of indexed
> files.  These will contain variable-length data (descriptions), which
> may be changed fairly frequently.  So I imagine that in addition to the
> data file, there will be an index file that keeps track of the position
> and length of each record.  New or expanded records will be stuffed in
> wherever there is free space, or at the end if no sufficient free chunk
> is available.

anydbm is probably the simplest here. Works on the Mac too, where gdbm is
available.

--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen at oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm




More information about the Python-list mailing list