From 52214f6bd8ec3d9bc10e1cb4f88b802dd75e984e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 13 Mar 2021 18:38:56 +0200 Subject: [PATCH] bpo-43443: Clarify difference between shelve objects and dicts --- 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: