I have found both Shelve, and the underlying bsddb hash (dbhash) modules are badly broken on Win32. I would not be surprised to see they are badly broken on Linux as well, although P.H.'s problem appears to be much more severe. Warren Postma