From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 26 Jul 2021 19:32:49 +0000 (-0700) Subject: bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370) X-Git-Tag: v3.9.7~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7482fff297727bb5faf64cc92c73561ccf48feda;p=thirdparty%2FPython%2Fcpython.git bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370) (cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka --- diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst index f08c58179a2f..87bacb6c3244 100644 --- a/Doc/library/shelve.rst +++ b/Doc/library/shelve.rst @@ -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: