Skip to content

Commit

Permalink
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004
Browse files Browse the repository at this point in the history
) (GH-27370)

(cherry picked from commit c97c2a0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
miss-islington and serhiy-storchaka committed Jul 26, 2021
1 parent 85ac814 commit 7482fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/shelve.rst
Expand Up @@ -55,7 +55,8 @@ lots of shared sub-objects. The keys are ordinary strings.
to load a shelf from an untrusted source. Like with pickle, loading a shelf
can execute arbitrary code.

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

Two additional methods are supported:
Expand Down

0 comments on commit 7482fff

Please sign in to comment.