StringIO and Berkley DB

Warren Postma embed at geocities.com
Tue May 16 08:56:47 EDT 2000


> My question is: Do I need to have the entire string in memory before
> the StringIO-module can use it?
>

Does the BSDDB allow you to open a handle to the data without reading it? I
was only
aware of an operation to read the whole data value at once, presumably into
memory.
If the BSDDB allowed you to basically fseek() to the right place and told
you how many
bytes to read, you wouldn't need StringIO at all, but you might need to
modify your
bsddb wrapper.

Warning: the bsddb 1.0 that ships with Python is known to be buggy. Check
out Robin Dunn's BSDDB 2.0
if you haven't already.

Warren






More information about the Python-list mailing list