From 1259ba725e49e4b5bda9e87b9e64884d4bc13d6f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 26 Jul 2021 19:11:25 +0300 Subject: [PATCH] bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka --- Doc/library/shelve.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst index 07caf91d5b7d99..1031888a5889b7 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: