We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Shelve.sync()
1 parent bf21e21 commit 85bf7c3Copy full SHA for 85bf7c3
1 file changed
Doc/library/shelve.rst
@@ -78,6 +78,13 @@ Two additional methods are supported:
78
dictionary on disk, if feasible. This is called automatically when the shelf
79
is closed with :meth:`close`.
80
81
+ .. warning::
82
+
83
+ During the call to :meth:`!sync`, the *writeback* attribute is set to
84
+ :const:`False` and other threads will stop updating the cache. As such,
85
+ this method is **not** thread-safe.
86
87
88
.. method:: Shelf.close()
89
90
Synchronize and close the persistent *dict* object. Operations on a closed
0 commit comments