This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: shelve .sync operation not documented
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, phr
Priority: normal Keywords:

Created on 2005-07-31 02:53 by phr, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg25911 - (view) Author: paul rubin (phr) Date: 2005-07-31 02:53
The shelve documentation doesn't describe how to flush
updates out to the disc file.  Without that, a
long-running server could go for months without writing
out any updates.  A server crash would then lose every
update.  I asked on clpy whether shelve really had such
a severe deficiency.  Thanks to Robert Kern for
mentioning the .sync() method, which does what is
needed.  The doc should definitely mention this. 
Shelve is much less useful without it.
msg25912 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-08-25 22:40
Logged In: YES 
user_id=1188172

Thanks for the report, fixed in Doc/lib/libshelve.py r1.23,
1.20.16.2.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42232
2005-07-31 02:53:38phrcreate