mirror of https://github.com/python/cpython.git
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004)
This commit is contained in:
parent
6c1b57d958
commit
c97c2a050c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue