mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) (GH-27370)
(cherry picked from commit c97c2a050c
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
85ac81499e
commit
7482fff297
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue