Skip to content

Commit 563e057

Browse files
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27369)
(cherry picked from commit c97c2a0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent 4a5457d commit 563e057

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/shelve.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ lots of shared sub-objects. The keys are ordinary strings.
6060
to load a shelf from an untrusted source. Like with pickle, loading a shelf
6161
can execute arbitrary code.
6262

63-
Shelf objects support all methods supported by dictionaries. This eases the
63+
Shelf objects support most of methods and operations supported by dictionaries
64+
(except copying, constructors and operators ``|`` and ``|=``). This eases the
6465
transition from dictionary based scripts to those requiring persistent storage.
6566

6667
Two additional methods are supported:

0 commit comments

Comments
 (0)