bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370)

(cherry picked from commit c97c2a050c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-07-26 12:32:49 -07:00 committed by GitHub
parent 85ac81499e
commit 7482fff297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: