Overview
| Artifact ID: | 87f9039ad35a2fbb0e09faaa4fe3cca1b70cd75224213bcaef2b3fd1cdda63f4 |
|---|---|
| Ticket: | d22ad202055093292992c6aea053188f8b3d4abe
"dict unset d key subkey" fails if key does not exist |
| User & Date: | oehhar on 2018-07-02 10:24:28 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
If a dictionary key is unset, there is no error, if it does not exist: <verbatim> % set d {} % dict unset d a </verbatim> <hr /> There is an error raised, if a key on the path of the subkey does not exist: <verbatim> % set d {} % dict unset d a b key "a" not known in dictionary </verbatim> IMHO this is inconsistent and should not rise an error. At least the documentation should write about error behaviour. <hr /> I can understand, that an error is raised, if the (sub)dict is not a valid dict. <verbatim> % set d {1} % dict unset d a missing value to go with key % set d {a 1} % dict unset d a b missing value to go with key </verbatim> - foundin changed to: "8.6.8"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "15. Dict Object"
- title changed to:
"dict unset d key subkey" fails if key does not exist
- type changed to: "Bug"