summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-07-26 19:32:36 (GMT)
committerGitHub <noreply@github.com>2021-07-26 19:32:36 (GMT)
commit563e05743c8f31366db7ef35a00e396c9f442b17 (patch)
tree376c6a2e4fe0df30ed816822aa27be6682feafb4 /Doc/library
parent4a5457d5d48e6563ec481daad245ff3d6ef13503 (diff)
downloadcpython-563e05743c8f31366db7ef35a00e396c9f442b17.zip
cpython-563e05743c8f31366db7ef35a00e396c9f442b17.tar.gz
cpython-563e05743c8f31366db7ef35a00e396c9f442b17.tar.bz2
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27369)
(cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/shelve.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index 07caf91..1031888 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -60,7 +60,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: